From f3d2529b96025039ee86c70aad054b5e22b09df1 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 16 Aug 2013 14:22:11 -0400 Subject: gsystem-log: Fix double-logging on non-systemd systems I was getting duplicated output on RHEL6. --- gsystem-log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsystem-log.c b/gsystem-log.c index df6e288..ef0c563 100644 --- a/gsystem-log.c +++ b/gsystem-log.c @@ -132,8 +132,10 @@ gs_log_structured_print (const char *message, { gs_log_structured (message, keys); +#ifdef ENABLE_SYSTEMD_JOURNAL if (!gs_stdout_is_journal ()) g_print ("%s\n", message); +#endif } /** -- cgit v1.2.1