Merge pull request #2290 from vcaputo/normalize-log-source-priorities
journal: normalize priority of logging sources
This commit is contained in:
@@ -495,5 +495,9 @@ int server_open_native_socket(Server*s) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to add native server fd to event loop: %m");
|
||||
|
||||
r = sd_event_source_set_priority(s->native_event_source, SD_EVENT_PRIORITY_NORMAL+5);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to adjust native event source priority: %m");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -733,7 +733,7 @@ int server_open_stdout_socket(Server *s) {
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to add stdout server fd to event source: %m");
|
||||
|
||||
r = sd_event_source_set_priority(s->stdout_event_source, SD_EVENT_PRIORITY_NORMAL+10);
|
||||
r = sd_event_source_set_priority(s->stdout_event_source, SD_EVENT_PRIORITY_NORMAL+5);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to adjust priority of stdout server event source: %m");
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user