Commit 30144e58 authored by Emanuele Aina's avatar Emanuele Aina

shell: Do not forcibly suppress debug messages if --verbose not set

Only force G_MESSAGES_DEBUG=all on --verbose, and follow the usual
logging behaviour otherwise.

This fixes specifying log domains in G_MESSAGES_DEBUG and also
G_MESSAGES_DEBUG=all without setting --verbose.

https://bugzilla.gnome.org/show_bug.cgi?id=693732
parent f064b653
......@@ -54,12 +54,10 @@ cc_shell_log_init (void)
void
cc_shell_log_set_debug (gboolean debug)
{
g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
if (debug) {
g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
log_levels |= (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO);
g_debug ("Enabling debugging");
} else {
log_levels &= ~ (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment