[systemd-commits] src/stdout-syslog-bridge.c
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Sep 1 12:15:10 PDT 2011
src/stdout-syslog-bridge.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 43de46ab92e3b343c2e35b42cf0728a9adf48f1c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Sep 1 21:15:00 2011 +0200
stdout-bridge: set facility of messages with no facility to configured facility instead of LOG_USER
diff --git a/src/stdout-syslog-bridge.c b/src/stdout-syslog-bridge.c
index 48a301f..7358a42 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:
More information about the systemd-commits
mailing list