diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-10-20 23:59:10 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2013-11-01 14:00:42 +0100 |
commit | 113b26b8ca1b64bb91b627817a28db92e3cda6fc (patch) | |
tree | eafecea9e0576eb64801b3973ab9e4447be1f7f2 /gtk | |
parent | 0720883b19cc4b8cc2886a695cf5c29b0e6afe20 (diff) |
util: do not overwrite G_MESSAGES_DEBUG=all
glib log handler only check for a single 'all' value, mixing it with
other domains name will disable 'all' messages.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/spice-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/spice-util.c b/gtk/spice-util.c index a76ffcc..e7c2dd7 100644 --- a/gtk/spice-util.c +++ b/gtk/spice-util.c @@ -48,6 +48,8 @@ static void spice_util_enable_debug_messages(void) const gchar *doms = g_getenv("G_MESSAGES_DEBUG"); if (!doms) { g_setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1); + } else if (g_str_equal(doms, "all")) { + return; } else if (!strstr(doms, G_LOG_DOMAIN)) { gchar *newdoms = g_strdup_printf("%s %s", doms, G_LOG_DOMAIN); g_setenv("G_MESSAGES_DEBUG", newdoms, 1); |