diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-06-16 19:40:34 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-06-16 19:42:49 +0100 |
commit | 114cb98100cc42cca563d7081760b01f779dc48b (patch) | |
tree | 20a06025c736028c633e3f01059814a722b35919 /src/gabble.c | |
parent | 610cf8ec9c77f3a2d648e19581fb7f916bdf7a59 (diff) |
Log gabble messages which do not originate from gabble_debug.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/gabble.c')
-rw-r--r-- | src/gabble.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gabble.c b/src/gabble.c index e64c42e34..12676aea1 100644 --- a/src/gabble.c +++ b/src/gabble.c @@ -59,7 +59,8 @@ simple_log (const gchar *log_domain, /* G_LOG_DOMAIN = "gabble". No need to send gabble messages to the debugger * as they already have in gabble_debug. */ - if (tp_strdiff (log_domain, G_LOG_DOMAIN)) + if (log_level != G_LOG_LEVEL_DEBUG + || tp_strdiff (log_domain, G_LOG_DOMAIN)) { GTimeVal now; g_get_current_time (&now); @@ -86,7 +87,8 @@ stamp_log (const gchar *log_domain, g_free (tmp); /* Gabble messages are already sent to the debugger in gabble_debug. */ - if (tp_strdiff (log_domain, G_LOG_DOMAIN)) + if (log_level != G_LOG_LEVEL_DEBUG + || tp_strdiff (log_domain, G_LOG_DOMAIN)) log_to_debugger (&now, log_domain, log_level, message); } #endif |