[libgsystem] gsystem-log: Fix double-logging on non-systemd systems
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] gsystem-log: Fix double-logging on non-systemd systems
- Date: Fri, 16 Aug 2013 18:23:20 +0000 (UTC)
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]