38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
|
From d2b5f09e2757f2585eb1003fdf6db43e58013c19 Mon Sep 17 00:00:00 2001
|
||
|
From: Matej Marusak <mmarusak@redhat.com>
|
||
|
Date: Tue, 21 Mar 2017 09:04:38 +0100
|
||
|
Subject: [PATCH] reporter-s-journal: add count to default logs
|
||
|
|
||
|
Field count is available only in FULL dump. There are however two good
|
||
|
reasons why to include this in NONE dump.
|
||
|
|
||
|
1. It is quite useful to know if this problem occurred first time or is it
|
||
|
problem that happens a lot.
|
||
|
|
||
|
2. We need it for cockpit integration. If the problem happened more times it
|
||
|
will have multiple logs. By comparing count in the log and real count, we can
|
||
|
know, if this is the last log of the problem. (timestamps do not work ideally
|
||
|
for this, since the time of problem does not equal to the time of the
|
||
|
log - there is some delay)
|
||
|
|
||
|
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
|
||
|
---
|
||
|
src/plugins/reporter-systemd-journal.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/src/plugins/reporter-systemd-journal.c b/src/plugins/reporter-systemd-journal.c
|
||
|
index 957002b..d12296e 100644
|
||
|
--- a/src/plugins/reporter-systemd-journal.c
|
||
|
+++ b/src/plugins/reporter-systemd-journal.c
|
||
|
@@ -126,6 +126,7 @@ static const char *const fields_default[] = {
|
||
|
DUMPDIR_PATH ,
|
||
|
FILENAME_UUID ,
|
||
|
FILENAME_DUPHASH ,
|
||
|
+ FILENAME_COUNT ,
|
||
|
NULL
|
||
|
};
|
||
|
|
||
|
--
|
||
|
2.9.3
|
||
|
|