diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-17 11:23:33 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-11-17 23:47:23 +0000 |
commit | 6f526243e6a638c2ea7bbdd07b963f57e110d120 (patch) | |
tree | 65661359b806f55af88c881c4283abe1a337da1d | |
parent | 1c36b4a73b876258fbe01fbe9bc9b750b7dcc9ce (diff) |
journal: drop empty lines after level_prefix removing
-rw-r--r-- | src/journal/journald-stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index fb800782fb..4e8bcd822d 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); |