summaryrefslogtreecommitdiff
path: root/src/system-update-generator
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-04 10:56:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-12 10:48:38 +0100
commitaba311f7ffb1370156f48061a5fdc2da9551e57f (patch)
tree107e54267e8f0e749729565abfeb454e0b274743 /src/system-update-generator
parentf7e81fd96fdfe0ac6dcdb72de43f7cb4720e363a (diff)
downloadsystemd-aba311f7ffb1370156f48061a5fdc2da9551e57f.tar.gz
generators: configure logging before the first use
Diffstat (limited to 'src/system-update-generator')
-rw-r--r--src/system-update-generator/system-update-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c
index 06062e4510..80f53cf34c 100644
--- a/src/system-update-generator/system-update-generator.c
+++ b/src/system-update-generator/system-update-generator.c
@@ -54,6 +54,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
int main(int argc, char *argv[]) {
int r, k;
+ log_setup_generator();
+
if (argc > 1 && argc != 4) {
log_error("This program takes three or no arguments.");
return EXIT_FAILURE;
@@ -62,8 +64,6 @@ int main(int argc, char *argv[]) {
if (argc > 1)
arg_dest = argv[2];
- log_setup_generator();
-
r = generate_symlink();
if (r > 0) {