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:
parent
1c36b4a73b
commit
6f526243e6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user