From bc7d57ebadc00bff01e8e90ccc2600687eb6d025 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 19 Jul 2018 15:47:29 +0300 Subject: [PATCH] log: Setup loglevel early We're printing messages before the log file is set up, so instead of keeping silence lets print data in default outputs. Signed-off-by: Cyrill Gorcunov Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com> Signed-off-by: Andrei Vagin --- criu/crtools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/criu/crtools.c b/criu/crtools.c index 829e5d796..2f89b69cf 100644 --- a/criu/crtools.c +++ b/criu/crtools.c @@ -700,6 +700,8 @@ int main(int argc, char *argv[], char *envp[]) } } + log_set_loglevel(log_level); + if (early_init()) return -1; @@ -796,7 +798,6 @@ int main(int argc, char *argv[], char *envp[]) return 1; } - log_set_loglevel(log_level); if (log_init(opts.output)) return 1;