From e0aa95fb3816a9e2c411e55a767f1da501732533 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 4 Jun 2014 10:31:44 +0200 Subject: fixup! core/logging: only log messages from glog, if LOGD_GLIB is enabled --- src/logging/nm-logging.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/logging/nm-logging.c b/src/logging/nm-logging.c index 17428d3615..864e04d0b8 100644 --- a/src/logging/nm-logging.c +++ b/src/logging/nm-logging.c @@ -451,9 +451,10 @@ nm_log_handler (const gchar *log_domain, nm_level = LOGL_INFO; break; case G_LOG_LEVEL_INFO: - /* we log INFO with syslog priority LOG_INFO, but it corresponds - * to nm_level LOGL_DEBUG, because it will be suppressed by default - * by glib similar to G_LOG_LEVEL_DEBUG. + /* we log G_LOG_LEVEL_INFO with syslog priority LOG_INFO, but it corresponds + * to nm_level LOGL_DEBUG, because glib considers G_LOG_LEVEL_INFO as one of + * INFO_LEVELS, which are filtered in glib by G_LOG_LEVEL_DEBUG. So, this is + * more of a LOGL_DEBUG level. * */ syslog_priority = LOG_INFO; nm_level = LOGL_DEBUG; -- cgit v1.2.1