[gnome-builder/gnome-builder-3-30] langserv: reduce language server init warning level



commit 50cb9ac548737c13b96d0c2e98ad7dd012da7ade
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 7 23:16:13 2018 -0700

    langserv: reduce language server init warning level
    
    This can be called a lot as more and more subsystems rely on the language
    server being available to execute.
    
    Fixes #661

 src/libide/langserv/ide-langserv-client.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/libide/langserv/ide-langserv-client.c b/src/libide/langserv/ide-langserv-client.c
index d8468f1c5..4c0799332 100644
--- a/src/libide/langserv/ide-langserv-client.c
+++ b/src/libide/langserv/ide-langserv-client.c
@@ -893,10 +893,8 @@ ide_langserv_client_initialize_cb (GObject      *object,
 
   if (!jsonrpc_client_call_finish (rpc_client, result, &reply, &error))
     {
-      ide_object_warning (self,
-                          /* translators: %s is replaced with the error message */
-                          _("Failed to initialize language server: %s"),
-                          error->message);
+      /* translators: %s is replaced with the error message */
+      g_debug (_("Failed to initialize language server: %s"), error->message);
       ide_langserv_client_stop (self);
       IDE_EXIT;
     }
@@ -1026,7 +1024,7 @@ ide_langserv_client_shutdown_cb (GObject      *object,
   g_assert (IDE_IS_LANGSERV_CLIENT (self));
 
   if (!jsonrpc_client_call_finish (client, result, NULL, &error))
-    g_warning ("%s", error->message);
+    g_debug ("%s", error->message);
   else
     jsonrpc_client_close_async (client,
                                 NULL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]