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