diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-16 21:45:55 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-17 08:10:39 +0200 |
commit | b3ebd480d6674ce4f66200858c88557595713bd5 (patch) | |
tree | 26f5d3c7c8b605fceccfb82c5dda04923fdee6d8 /src | |
parent | CONTROL_GROUP_INTERFACE: fix link to systemd-run code (diff) | |
download | systemd-b3ebd480d6674ce4f66200858c88557595713bd5.tar.xz systemd-b3ebd480d6674ce4f66200858c88557595713bd5.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/generator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c index 1b3304a7df..bff44cfc15 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -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(); } |