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 -3
View File
@@ -446,9 +446,7 @@ static int run(int argc, char **argv) {
_cleanup_strv_free_ char **exec_argv = NULL;
int r, n;
log_show_color(true);
log_parse_environment();
log_open();
log_setup();
r = parse_argv(argc, argv);
if (r <= 0)