blob: 29f54425a7946cf99e4f8563c0602a4a472f08d0 [file] [log] [blame]
From f59c280ad5de852448df73bb8c22ec431562eeab Mon Sep 17 00:00:00 2001
From: Chris Morin <cmtm@google.com>
Date: Fri, 7 Dec 2018 18:08:05 -0800
Subject: [PATCH] don't log certain fields
The machine-id and hostname are the same on all Chrome OS devices, so
there's no need to log them.
---
src/journal/journald-server.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index a2a2e36f12..d22d690a81 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -994,11 +994,9 @@ static void dispatch_message_real(
if (!isempty(s->boot_id_field))
iovec[n++] = IOVEC_MAKE_STRING(s->boot_id_field);
- if (!isempty(s->machine_id_field))
- iovec[n++] = IOVEC_MAKE_STRING(s->machine_id_field);
+ /* No need for machine-id on Chrome OS */
- if (!isempty(s->hostname_field))
- iovec[n++] = IOVEC_MAKE_STRING(s->hostname_field);
+ /* No need for hostname on Chrome OS */
assert(n <= m);
--
2.21.0.1020.gf2820cf01a-goog