diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-09-10 17:55:49 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-09-10 17:55:49 +0100 |
commit | a4206720755969ab923f6bea1148a79cbd8a1823 (patch) | |
tree | 0131b818ec017b931a7e9eb13e8fa5abf98867c4 | |
parent | 6af5cb11e18f94a02274b48749aca1c13a57229f (diff) |
fd.o#23843: tp_debug_sender_log_handler: correct logic for exclude=NULL to exclude nothing
Also elide an unnecessary variable.
-rw-r--r-- | telepathy-glib/debug-sender.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/telepathy-glib/debug-sender.c b/telepathy-glib/debug-sender.c index ce42bec4..0660ac85 100644 --- a/telepathy-glib/debug-sender.c +++ b/telepathy-glib/debug-sender.c @@ -446,17 +446,12 @@ tp_debug_sender_log_handler (const gchar *log_domain, const gchar *message, gpointer exclude) { - const gchar *domain_exclude = NULL; - g_log_default_handler (log_domain, log_level, message, NULL); if (debug_sender == NULL) return; - if (exclude != NULL) - domain_exclude = (gchar *) exclude; - - if (domain_exclude != NULL && tp_strdiff (log_domain, domain_exclude)) + if (exclude == NULL || tp_strdiff (log_domain, exclude)) { GTimeVal now; g_get_current_time (&now); |