2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

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 <gorcunov@gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov
2018-07-19 15:47:29 +03:00
committed by Andrei Vagin
parent 6ef193b0a0
commit bc7d57ebad

View File

@@ -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;