summaryrefslogtreecommitdiffstats
path: root/src/vpick/vpick-tool.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-25 14:09:09 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-25 17:06:43 +0200
commitaa976d87889ae22b7347787a1ebd03a31dcc0a9e (patch)
tree08c1a7e8bff36f1def213ac176cf9f725c5c7f1f /src/vpick/vpick-tool.c
parentmkosi: Make sure systemd-resolved is started on boot (diff)
downloadsystemd-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/vpick/vpick-tool.c')
-rw-r--r--src/vpick/vpick-tool.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vpick/vpick-tool.c b/src/vpick/vpick-tool.c
index 0504b7733b..c5ae8c510a 100644
--- a/src/vpick/vpick-tool.c
+++ b/src/vpick/vpick-tool.c
@@ -216,9 +216,7 @@ static int parse_argv(int argc, char *argv[]) {
static int run(int argc, char *argv[]) {
int r;
- log_show_color(true);
- log_parse_environment();
- log_open();
+ log_setup();
r = parse_argv(argc, argv);
if (r <= 0)