[PATCH spice-gtk] util: do not overwrite G_MESSAGES_DEBUG=all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



glib log handler only check for a single 'all' value, mixing it with
other domains name will disable 'all' messages.
---
 gtk/spice-util.c | 2 ++
 spice-common     | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gtk/spice-util.c b/gtk/spice-util.c
index 6ac6af6..823d47b 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);
diff --git a/spice-common b/spice-common
index f88e851..8705f24 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit f88e851ed684f25d325e610b3ac2db2d6bc30848
+Subproject commit 8705f2438b450a35c0274fb864c8a604734c23db
-- 
1.8.3.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]