mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
Fix generator logging
log_setup() overrides the previously set log target again so we can't use it in log_setup_generator(). Follow-up for aa976d87889ae22b7347787a1ebd03a31dcc0a9e (cherry picked from commit b3ebd480d6674ce4f66200858c88557595713bd5)
This commit is contained in:
parent
86a9eea94c
commit
902877d55e
@ -968,7 +968,9 @@ void log_setup_generator(void) {
|
||||
|
||||
/* This effectively means: journal for per-user generators, kmsg otherwise */
|
||||
log_set_target(LOG_TARGET_JOURNAL_OR_KMSG);
|
||||
}
|
||||
} else
|
||||
log_set_target(LOG_TARGET_AUTO);
|
||||
|
||||
log_setup();
|
||||
log_parse_environment();
|
||||
log_open();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user