From e6f15f26ebdc0d75e3e121bd6eb4b400c21394a6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 6 Feb 2018 14:47:48 +0100 Subject: [PATCH] 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. --- src/nm-logging.c | 3 +++ 1 file changed, 3 insertions(+) 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: