From 92059d7ecb6c77e253e5c18b9f314e864533e7fc Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Fri, 20 Jan 2017 13:46:10 -0800 Subject: [PATCH] journal probe: filter LOG_EMERG logs as well I omitted log level 0 from the filter, so add it here. Signed-off-by: Patrick McCarty --- src/probes/journal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/probes/journal.c b/src/probes/journal.c index 139d85a..30fa1eb 100644 --- a/src/probes/journal.c +++ b/src/probes/journal.c @@ -229,7 +229,8 @@ static bool add_filters(sd_journal *journal) MATCH(data); free(data); AND; - // The three highest log levels, all indicating errors + // The four highest log levels, all indicating errors + MATCH("PRIORITY=0"); MATCH("PRIORITY=1"); MATCH("PRIORITY=2"); MATCH("PRIORITY=3");