mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
parent
6ef193b0a0
commit
bc7d57ebad
@ -700,6 +700,8 @@ int main(int argc, char *argv[], char *envp[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_set_loglevel(log_level);
|
||||||
|
|
||||||
if (early_init())
|
if (early_init())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -796,7 +798,6 @@ int main(int argc, char *argv[], char *envp[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_set_loglevel(log_level);
|
|
||||||
|
|
||||||
if (log_init(opts.output))
|
if (log_init(opts.output))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user