mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 10:40:58 +01:00
logging: use INFO level for debug messages
By default most distros won't log debug messages to syslog; but we want them logged when the user explicitly requests them via the logging API and config options in NM. Half the point of doing more logging was to make it easier for users to get logs out of NM, and having to edit syslog configuration makes it all pointless.
This commit is contained in:
parent
dcda7e7ab2
commit
78f7ef1115
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ void _nm_log (const char *loc,
|
|||
|
||||
if ((log_level & LOGL_DEBUG) && (level == LOGL_DEBUG)) {
|
||||
g_get_current_time (&tv);
|
||||
syslog (LOG_DEBUG, "<debug> [%ld.%ld] [%s] %s(): %s\n", tv.tv_sec, tv.tv_usec, loc, func, msg);
|
||||
syslog (LOG_INFO, "<debug> [%ld.%ld] [%s] %s(): %s\n", tv.tv_sec, tv.tv_usec, loc, func, msg);
|
||||
} else if ((log_level & LOGL_INFO) && (level == LOGL_INFO))
|
||||
syslog (LOG_INFO, "<info> %s\n", msg);
|
||||
else if ((log_level & LOGL_WARN) && (level == LOGL_WARN))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue