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.
This commit is contained in:
Daan De Meyer
2024-04-25 17:06:43 +02:00
parent d74ebb175a
commit aa976d8788
38 changed files with 43 additions and 99 deletions
+1 -1
View File
@@ -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);