stdout-bridge: set facility of messages with no facility to configured facility instead of LOG_USER

This commit is contained in:
Lennart Poettering 2011-09-01 21:15:00 +02:00
parent 27d340c772
commit 43de46ab92
1 changed files with 2 additions and 2 deletions

View File

@ -111,9 +111,9 @@ static int stream_log(Stream *s, char *p, usec_t ts) {
if (*p == 0)
return 0;
/* Patch in LOG_USER facility if necessary */
/* Patch in configured facility if necessary */
if ((priority & LOG_FACMASK) == 0)
priority = LOG_USER | LOG_PRI(priority);
priority = (s->priority & LOG_FACMASK) | priority;
/*
* The format glibc uses to talk to the syslog daemon is: