core/logging: when comparing glib log levels, ignore non-level flags

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-04-24 20:01:13 +02:00
parent 13b10607d4
commit 6b5fb892e1

View File

@@ -432,7 +432,7 @@ nm_log_handler (const gchar *log_domain,
{ {
int syslog_priority; int syslog_priority;
switch (level) { switch (level & G_LOG_LEVEL_MASK) {
case G_LOG_LEVEL_ERROR: case G_LOG_LEVEL_ERROR:
syslog_priority = LOG_CRIT; syslog_priority = LOG_CRIT;
break; break;