summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-08-20 19:21:45 -0400
committerColin Walters <walters@verbum.org>2013-08-20 19:21:45 -0400
commit592003ad7314c71230cfa5e39ccdf8f6c16eebc7 (patch)
tree85fe7226a33b5c54fc03aeacab73969dc097c20f
parentf3d2529b96025039ee86c70aad054b5e22b09df1 (diff)
downloadlibgsystem-592003ad7314c71230cfa5e39ccdf8f6c16eebc7.tar.gz
gsystem-log: Correctly suppress systemd journal code location
It's not useful since we're wrapping the API.
-rw-r--r--gsystem-log.c3
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