diff options
author | Thomas Haller <thaller@redhat.com> | 2014-06-04 10:31:44 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-06-04 11:00:57 +0200 |
commit | e0aa95fb3816a9e2c411e55a767f1da501732533 (patch) | |
tree | 7a7522e85a3771ddb22a39ee07e47a5dd737dddb | |
parent | 783ae787af362dbc09691d344118137e4f821900 (diff) | |
download | NetworkManager-th/bgo706293_nm_log_glib.tar.gz |
fixup! core/logging: only log messages from glog, if LOGD_GLIB is enabledth/bgo706293_nm_log_glib
-rw-r--r-- | src/logging/nm-logging.c | 7 |
1 files 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; |