mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-28 07:06:04 +00:00
Don't override G_LOG_DOMAIN=all
If the string is different, the GLib log handler will not log all messages.
This commit is contained in:
parent
9d69e5a629
commit
7b227be064
@ -179,7 +179,8 @@ virt_viewer_app_set_debug(gboolean debug)
|
||||
const gchar *doms = g_getenv("G_MESSAGES_DEBUG");
|
||||
if (!doms) {
|
||||
g_setenv("G_MESSAGES_DEBUG", G_LOG_DOMAIN, 1);
|
||||
} else if (!strstr(doms, G_LOG_DOMAIN)) {
|
||||
} else if (!g_str_equal(doms, "all") &&
|
||||
!strstr(doms, G_LOG_DOMAIN)) {
|
||||
gchar *newdoms = g_strdup_printf("%s %s", doms, G_LOG_DOMAIN);
|
||||
g_setenv("G_MESSAGES_DEBUG", newdoms, 1);
|
||||
g_free(newdoms);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user