[libgsystem] gsystem-log: Fix double-logging on non-systemd systems



commit f3d2529b96025039ee86c70aad054b5e22b09df1
Author: Colin Walters <walters verbum org>
Date:   Fri Aug 16 14:22:11 2013 -0400

    gsystem-log: Fix double-logging on non-systemd systems
    
    I was getting duplicated output on RHEL6.

 gsystem-log.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
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
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]