summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdout-syslog-bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdout-syslog-bridge.c b/src/stdout-syslog-bridge.c
index 48a301f6a7..7358a42f70 100644
--- a/src/stdout-syslog-bridge.c
+++ b/src/stdout-syslog-bridge.c
@@ -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: