1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-27 07:22:31 +03:00

journal: drop empty lines after level_prefix removing

This commit is contained in:
Evgeny Vereshchagin 2015-11-17 11:23:33 +00:00
parent 1c36b4a73b
commit 6f526243e6

View File

@ -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);