core/logging: when comparing glib log levels, ignore non-level flags
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user