diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-12 02:03:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-12 02:03:23 +0100 |
commit | f466acdc633fc496961eff0c7f66501f4588e5b6 (patch) | |
tree | 753eed3ff217ec8578fc6d1ecb86f6ed7ced2517 /src/journal/journald-syslog.c | |
parent | a41a7181c9af8f9ac93a85a2cf133294dd202c8e (diff) | |
parent | 48cef29504b1ffc0df9929f2d8b2af2ad74d2b4a (diff) |
Merge pull request #2290 from vcaputo/normalize-log-source-priorities
journal: normalize priority of logging sources
Diffstat (limited to 'src/journal/journald-syslog.c')
-rw-r--r-- | src/journal/journald-syslog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c index cfc50d889b..2f7a805f14 100644 --- a/src/journal/journald-syslog.c +++ b/src/journal/journald-syslog.c @@ -430,6 +430,10 @@ int server_open_syslog_socket(Server *s) { if (r < 0) return log_error_errno(r, "Failed to add syslog server fd to event loop: %m"); + r = sd_event_source_set_priority(s->syslog_event_source, SD_EVENT_PRIORITY_NORMAL+5); + if (r < 0) + return log_error_errno(r, "Failed to adjust syslog event source priority: %m"); + return 0; } |