From 6f526243e6a638c2ea7bbdd07b963f57e110d120 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Tue, 17 Nov 2015 11:23:33 +0000 Subject: [PATCH] journal: drop empty lines after level_prefix removing --- src/journal/journald-stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index fb800782fb6..4e8bcd822d9 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -239,14 +239,14 @@ static int stdout_stream_log(StdoutStream *s, const char *p) { assert(s); assert(p); - if (isempty(p)) - return 0; - priority = s->priority; if (s->level_prefix) syslog_parse_priority(&p, &priority, false); + if (isempty(p)) + return 0; + if (s->forward_to_syslog || s->server->forward_to_syslog) server_forward_syslog(s->server, syslog_fixup_facility(priority), s->identifier, p, &s->ucred, NULL);