mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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 aa976d8788
This commit is contained in:
committed by
Yu Watanabe
parent
6695ff4c15
commit
b3ebd480d6
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user