mirror of
https://github.com/systemd/systemd.git
synced 2025-08-24 09:49:49 +03:00
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.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user