summaryrefslogtreecommitdiff
path: root/src/logging
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-04-08 14:49:56 -0700
committerDan Williams <dcbw@redhat.com>2010-04-08 14:49:56 -0700
commit78f7ef11151f548fa39a3b4ed0732a335c777094 (patch)
tree60da0a74c8a37f9c41daee4e2bbf7545b959ed39 /src/logging
parentdcda7e7ab2f345fd2b819268321b15dd0eaf8282 (diff)
downloadNetworkManager-78f7ef11151f548fa39a3b4ed0732a335c777094.tar.gz
logging: use INFO level for debug messages
By default most distros won't log debug messages to syslog; but we want them logged when the user explicitly requests them via the logging API and config options in NM. Half the point of doing more logging was to make it easier for users to get logs out of NM, and having to edit syslog configuration makes it all pointless.
Diffstat (limited to 'src/logging')
-rw-r--r--src/logging/nm-logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging/nm-logging.c b/src/logging/nm-logging.c
index b1d1b058b8..acfca1b46f 100644
--- a/src/logging/nm-logging.c
+++ b/src/logging/nm-logging.c
@@ -199,7 +199,7 @@ void _nm_log (const char *loc,
if ((log_level & LOGL_DEBUG) && (level == LOGL_DEBUG)) {
g_get_current_time (&tv);
- syslog (LOG_DEBUG, "<debug> [%ld.%ld] [%s] %s(): %s\n", tv.tv_sec, tv.tv_usec, loc, func, msg);
+ syslog (LOG_INFO, "<debug> [%ld.%ld] [%s] %s(): %s\n", tv.tv_sec, tv.tv_usec, loc, func, msg);
} else if ((log_level & LOGL_INFO) && (level == LOGL_INFO))
syslog (LOG_INFO, "<info> %s\n", msg);
else if ((log_level & LOGL_WARN) && (level == LOGL_WARN))