mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-25 19:40:28 +01:00
core/logging: with --debug also output glib messages in stderr
With --debug, we duplicate nm-log messages to stderr. Do the same for glib messages and don't only send them to syslog/journal.
This commit is contained in:
parent
8b4f119272
commit
e6f15f26eb
1 changed files with 3 additions and 0 deletions
|
|
@ -768,6 +768,9 @@ nm_log_handler (const gchar *log_domain,
|
|||
break;
|
||||
}
|
||||
|
||||
if (global.debug_stderr)
|
||||
g_printerr ("%s%s\n", global.prefix, message ?: "");
|
||||
|
||||
switch (global.log_backend) {
|
||||
#if SYSTEMD_JOURNAL
|
||||
case LOG_BACKEND_JOURNAL:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue