summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-05-06 18:14:38 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-05-06 18:14:38 +0000
commit652448d9f4e1cd927e3f890afaabe53d95cec610 (patch)
treed230b163ea736799ae31eb419ebe778d0e07a7a4 /common
parente08c5fdc7907e19540a602220e0e0bae760d4f16 (diff)
downloadgdm-652448d9f4e1cd927e3f890afaabe53d95cec610.tar.gz
Don't unconditionally enable debugging.
2008-05-06 William Jon McCann <jmccann@redhat.com> * common/gdm-log.c (log_level_to_priority_and_prefix), (gdm_log_set_debug): * daemon/factory-slave-main.c (signal_cb), (is_debug_set), (main): * daemon/product-slave-main.c (signal_cb), (is_debug_set), (main): * daemon/session-worker-main.c (signal_cb), (is_debug_set), (main): * daemon/simple-slave-main.c (signal_cb), (is_debug_set), (main): * daemon/xdmcp-chooser-slave-main.c (signal_cb), (is_debug_set), (main): Don't unconditionally enable debugging. svn path=/trunk/; revision=6220
Diffstat (limited to 'common')
-rw-r--r--common/gdm-log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/gdm-log.c b/common/gdm-log.c
index 29476b3f..e03d90e3 100644
--- a/common/gdm-log.c
+++ b/common/gdm-log.c
@@ -78,10 +78,11 @@ log_level_to_priority_and_prefix (GLogLevelFlags log_level,
* to ensure it is seen in a log */
if (syslog_levels & G_LOG_LEVEL_DEBUG) {
priority = LOG_WARNING;
+ prefix = "DEBUG(+)";
} else {
priority = LOG_DEBUG;
+ prefix = "DEBUG";
}
- prefix = "DEBUG";
break;
default:
priority = LOG_DEBUG;
@@ -169,7 +170,9 @@ gdm_log_set_debug (gboolean debug)
{
if (debug) {
syslog_levels |= G_LOG_LEVEL_DEBUG;
+ g_debug ("Enabling debugging");
} else {
+ g_debug ("Disabling debugging");
syslog_levels &= ~G_LOG_LEVEL_DEBUG;
}
}