From 98aa61e2a402ec2edb2efc3b9051f1bf5c7b0282 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 29 Feb 2012 22:38:17 -0500 Subject: [PATCH] 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 file changed, 21 deletions(-) diff --git a/src/main.c b/src/main.c index e1e8722dc..c872a12df 100644 --- a/src/main.c +++ b/src/main.c @@ -217,15 +217,6 @@ shell_perf_log_init (void) NULL, NULL); } -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, @@ -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. */