From: Daan De Meyer Date: Sun, 21 Apr 2024 16:29:43 +0000 (+0200) Subject: test: Use log_setup() X-Git-Tag: v256-rc1~87^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c6c358040f097e45c90960500312a68ad60601;p=thirdparty%2Fsystemd.git test: Use log_setup() Specifically, this will make tests log to the journal if stderr is connected to the journal. This means we get proper log priorities and such compared to if we just logged to stderr. --- diff --git a/src/shared/tests.c b/src/shared/tests.c index 41177f821e6..a0b1472d898 100644 --- a/src/shared/tests.c +++ b/src/shared/tests.c @@ -116,8 +116,7 @@ bool slow_tests_enabled(void) { void test_setup_logging(int level) { log_set_assert_return_is_critical(true); log_set_max_level(level); - log_parse_environment(); - log_open(); + log_setup(); } int write_tmpfile(char *pattern, const char *contents) {