mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 06:20:16 +01:00
core/logging: when comparing glib log levels, ignore non-level flags
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
13b10607d4
commit
6b5fb892e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue