summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-06 14:47:48 +0100
committerThomas Haller <thaller@redhat.com>2018-02-06 15:09:37 +0100
commit19b837827ccdf07404a3f441e7064365b2d5c54b (patch)
treee412af7f4aa388860ea842f2f8c3caef179c7ee0
parent6676e6d69787a1c061fd574b14efac2653137cf9 (diff)
downloadNetworkManager-th/mixed.tar.gz
core/logging: with --debug also output glib messages in stderrth/mixed
With --debug, we duplicate nm-log messages to stderr. Do the same for glib messages and don't only send them to syslog/journal.
-rw-r--r--src/nm-logging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-logging.c b/src/nm-logging.c
index 4ef786f6e9..11e05c31f7 100644
--- a/src/nm-logging.c
+++ b/src/nm-logging.c
@@ -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: