[telepathy-haze/master] Remove all of the hard-coded preferences of which debug messages to display.

Mike Ruprecht mike.ruprecht at collabora.co.uk
Fri Oct 30 14:52:10 PDT 2009


---
 src/debug.c |   35 +----------------------------------
 1 files changed, 1 insertions(+), 34 deletions(-)

diff --git a/src/debug.c b/src/debug.c
index 3c5f829..04c53ad 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -138,43 +138,10 @@ haze_debug_print (PurpleDebugLevel level,
     g_free(argh);
 }
 
-static gboolean
-haze_debug_is_enabled (PurpleDebugLevel level,
-                       const char *category)
-{
-    if (!(flags & HAZE_DEBUG_PURPLE))
-        return FALSE;
-
-    if (level == PURPLE_DEBUG_MISC)
-        return FALSE;
-    /* oscar and yahoo, among others, supply a NULL category for some of their
-     * output.  "yay"
-     */
-    if (!category)
-        return FALSE;
-    /* The Jabber prpl produces an unreasonable volume of debug output, so
-     * let's suppress it.
-     */
-    if (!strcmp (category, "jabber"))
-        return FALSE;
-    if (!strcmp (category, "dns") ||
-        !strcmp (category, "dnsquery") ||
-        !strcmp (category, "proxy") ||
-        !strcmp (category, "gnutls") ||
-        !strcmp (category, "prefs") ||
-        !strcmp (category, "util") ||
-        !strcmp (category, "plugins") ||
-        g_str_has_prefix (category, "certificate"))
-    {
-        return FALSE;
-    }
-    return TRUE;
-}
-
 static PurpleDebugUiOps haze_debug_uiops =
 {
     haze_debug_print,
-    haze_debug_is_enabled,
+    NULL,
     /* padding */
     NULL,
     NULL,
-- 
1.5.6.5




More information about the telepathy-commits mailing list