diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-25 14:09:09 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-25 17:06:43 +0200 |
commit | aa976d87889ae22b7347787a1ebd03a31dcc0a9e (patch) | |
tree | 08c1a7e8bff36f1def213ac176cf9f725c5c7f1f /src/test/test-fd-util.c | |
parent | mkosi: Make sure systemd-resolved is started on boot (diff) | |
download | systemd-aa976d87889ae22b7347787a1ebd03a31dcc0a9e.tar.xz systemd-aa976d87889ae22b7347787a1ebd03a31dcc0a9e.zip |
tree-wide: Use log_setup() everywhere
Otherwise the default log target is the console and we won't use
the journal socket even if it is available.
Diffstat (limited to 'src/test/test-fd-util.c')
-rw-r--r-- | src/test/test-fd-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-fd-util.c b/src/test/test-fd-util.c index 2796fe8882..f2b65d492a 100644 --- a/src/test/test-fd-util.c +++ b/src/test/test-fd-util.c @@ -148,7 +148,7 @@ TEST(rearrange_stdio) { assert_se(rearrange_stdio(-EBADF, -EBADF, -EBADF) >= 0); /* Reconfigure logging after rearranging stdout/stderr, so we still log to somewhere if the * following tests fail, making it slightly less annoying to debug */ - log_set_target(LOG_TARGET_KMSG); + log_set_target(LOG_TARGET_JOURNAL_OR_KMSG); log_open(); assert_se(fd_get_path(STDIN_FILENO, &path) >= 0); |