[gnome-builder] symbol-tree: lower logging priority



commit 15180e44f1751acc945a905e63ea47079e72ed13
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 2 16:51:09 2018 -0700

    symbol-tree: lower logging priority

 src/plugins/symbol-tree/gbp-symbol-layout-stack-addin.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/symbol-tree/gbp-symbol-layout-stack-addin.c 
b/src/plugins/symbol-tree/gbp-symbol-layout-stack-addin.c
index 72e8a9903..e7e5d7b04 100644
--- a/src/plugins/symbol-tree/gbp-symbol-layout-stack-addin.c
+++ b/src/plugins/symbol-tree/gbp-symbol-layout-stack-addin.c
@@ -131,11 +131,8 @@ gbp_symbol_layout_stack_addin_find_scope_cb (GObject      *object,
       return;
     }
 
-  if (error != NULL &&
-      !(g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) ||
-        g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) ||
-        g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)))
-    g_warning ("Failed to find nearest scope: %s", error->message);
+  if (error != NULL)
+    g_debug ("Failed to find nearest scope: %s", error->message);
 
   if (self->button != NULL)
     gbp_symbol_menu_button_set_symbol (self->button, symbol);
@@ -273,10 +270,8 @@ gbp_symbol_layout_stack_addin_get_symbol_tree_cb (GObject      *object,
       return;
     }
 
-  if (error != NULL &&
-      !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
-      !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
-    g_warning ("Failed to get symbol tree: %s", error->message);
+  if (error != NULL)
+    g_debug ("Failed to get symbol tree: %s", error->message);
 
   /* If we were destroyed, short-circuit */
   if (self->button != NULL)


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