[libgsystem] gsystem-log: Correctly suppress systemd journal code location
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] gsystem-log: Correctly suppress systemd journal code location
- Date: Tue, 20 Aug 2013 23:22:27 +0000 (UTC)
commit 592003ad7314c71230cfa5e39ccdf8f6c16eebc7
Author: Colin Walters <walters verbum org>
Date: Tue Aug 20 19:21:45 2013 -0400
gsystem-log: Correctly suppress systemd journal code location
It's not useful since we're wrapping the API.
gsystem-log.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gsystem-log.c b/gsystem-log.c
index ef0c563..7b03145 100644
--- a/gsystem-log.c
+++ b/gsystem-log.c
@@ -26,6 +26,7 @@
#endif
#ifdef ENABLE_SYSTEMD_JOURNAL
+#define SD_JOURNAL_SUPPRESS_LOCATION
#include <systemd/sd-journal.h>
#endif
#include <glib-unix.h>
@@ -71,9 +72,7 @@ gs_log_structured (const char *message,
iovs[i].iov_len = strlen (msgkey);
// The code location isn't useful since we're wrapping
-#define SD_JOURNAL_SUPPRESS_LOCATION
sd_journal_sendv (iovs, n_opts);
-#undef SD_JOURNAL_SUPPRESS_LOCATION
g_free (msgkey);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]