[Spice-devel] [PATCH spice-gtk] util: do not overwrite G_MESSAGES_DEBUG=all
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Oct 29 21:30:49 CET 2013
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
More information about the Spice-devel
mailing list