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:
Thomas Haller 2018-02-06 14:47:48 +01:00
parent 8b4f119272
commit e6f15f26eb

View file

@ -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: