From 6b5fb892e195e7aaab2828b3826e30a7bcc3b9eb Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 24 Apr 2014 20:01:13 +0200 Subject: [PATCH] core/logging: when comparing glib log levels, ignore non-level flags Signed-off-by: Thomas Haller --- 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 f071f847d..57d522a3c 100644 --- a/src/logging/nm-logging.c +++ b/src/logging/nm-logging.c @@ -432,7 +432,7 @@ nm_log_handler (const gchar *log_domain, { int syslog_priority; - switch (level) { + switch (level & G_LOG_LEVEL_MASK) { case G_LOG_LEVEL_ERROR: syslog_priority = LOG_CRIT; break;