[gnome-shell] main: Remove muted_log_handler



commit 98aa61e2a402ec2edb2efc3b9051f1bf5c7b0282
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Feb 29 22:38:17 2012 -0500

    main: Remove muted_log_handler
    
    Since glib turns off g_debug spew by default, we don't need to mute
    it ourselves.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671086

 src/main.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index e1e8722..c872a12 100644
--- a/src/main.c
+++ b/src/main.c
@@ -218,15 +218,6 @@ shell_perf_log_init (void)
 }
 
 static void
-muted_log_handler (const char     *log_domain,
-                   GLogLevelFlags  log_level,
-                   const char     *message,
-                   gpointer        data)
-{
-  /* Intentionally empty to discard message */
-}
-
-static void
 default_log_handler (const char     *log_domain,
                      GLogLevelFlags  log_level,
                      const char     *message,
@@ -321,18 +312,6 @@ main (int argc, char **argv)
   g_irepository_prepend_search_path (BLUETOOTH_DIR);
 #endif
 
-  /* Disable debug spew from various libraries */
-  g_log_set_handler ("Gvc", G_LOG_LEVEL_DEBUG,
-                     muted_log_handler, NULL);
-  g_log_set_handler ("AccountsService", G_LOG_LEVEL_DEBUG,
-                     muted_log_handler, NULL);
-  g_log_set_handler ("Bluetooth", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_MESSAGE,
-                     muted_log_handler, NULL);
-  g_log_set_handler ("tp-glib/proxy", G_LOG_LEVEL_DEBUG,
-                     muted_log_handler, NULL);
-  g_log_set_handler ("GnomeShellBrowserPlugin", G_LOG_LEVEL_DEBUG,
-                     muted_log_handler, NULL);
-
   /* Turn on telepathy-glib debugging but filter it out in
    * default_log_handler. This handler also exposes all the logs over D-Bus
    * using TpDebugSender. */



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