Commit bc7d57eb authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

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: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6ef193b0
...@@ -700,6 +700,8 @@ int main(int argc, char *argv[], char *envp[]) ...@@ -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[]) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment