From 78f7ef11151f548fa39a3b4ed0732a335c777094 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 8 Apr 2010 14:49:56 -0700 Subject: [PATCH] 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. --- src/logging/nm-logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, " [%ld.%ld] [%s] %s(): %s\n", tv.tv_sec, tv.tv_usec, loc, func, msg); + syslog (LOG_INFO, " [%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, " %s\n", msg); else if ((log_level & LOGL_WARN) && (level == LOGL_WARN))