chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
27d340c
)
stdout-bridge: set facility of messages with no facility to configured facility inste...
author
Lennart Poettering
<lennart@poettering.net>
Thu, 1 Sep 2011 19:15:00 +0000
(21:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 1 Sep 2011 19:15:00 +0000
(21:15 +0200)
src/stdout-syslog-bridge.c
patch
|
blob
|
history
diff --git
a/src/stdout-syslog-bridge.c
b/src/stdout-syslog-bridge.c
index 48a301f6a711ffd2fb8d8213b4868abfed8fd70a..7358a42f70f855c58542ce152ac1f1b4367ef3e4 100644
(file)
--- 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: