diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-04 10:56:44 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-12-12 10:48:38 +0100 |
commit | aba311f7ffb1370156f48061a5fdc2da9551e57f (patch) | |
tree | 107e54267e8f0e749729565abfeb454e0b274743 /src/getty-generator | |
parent | udev: introduce udev net_id "naming schemes" (diff) | |
download | systemd-aba311f7ffb1370156f48061a5fdc2da9551e57f.tar.xz systemd-aba311f7ffb1370156f48061a5fdc2da9551e57f.zip |
generators: configure logging before the first use
Diffstat (limited to 'src/getty-generator')
-rw-r--r-- | src/getty-generator/getty-generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c index e2e07bca76..e604ff79a1 100644 --- a/src/getty-generator/getty-generator.c +++ b/src/getty-generator/getty-generator.c @@ -113,6 +113,8 @@ int main(int argc, char *argv[]) { const char *j; int r; + log_setup_generator(); + if (argc > 1 && argc != 4) { log_error("This program takes three or no arguments."); return EXIT_FAILURE; @@ -121,8 +123,6 @@ int main(int argc, char *argv[]) { if (argc > 1) arg_dest = argv[1]; - log_setup_generator(); - if (detect_container() > 0) { _cleanup_free_ char *container_ttys = NULL; |