[libgsystem] gsystem-log: Suppress code location from journal
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgsystem] gsystem-log: Suppress code location from journal
- Date: Fri, 3 May 2013 13:28:15 +0000 (UTC)
commit defa75c4c5bb2402eece93e64c2f7d5ac3c08d8d
Author: Colin Walters <walters verbum org>
Date: Thu Apr 25 08:25:42 2013 -0400
gsystem-log: Suppress code location from journal
Since we're wrapping it.
gsystem-log.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gsystem-log.c b/gsystem-log.c
index 587f86a..be90878 100644
--- a/gsystem-log.c
+++ b/gsystem-log.c
@@ -68,8 +68,11 @@ gs_log_structured (const char *message,
msgkey = g_strconcat ("MESSAGE=", message, NULL);
iovs[i].iov_base = msgkey;
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]