[CRIU] [PATCH 01/18] log: Setup loglevel early

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 19 15:47:29 MSK 2018


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 at gmail.com>
---
 criu/crtools.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/crtools.c b/criu/crtools.c
index 18be98cd7a9a..10fa435aa04b 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -702,6 +702,8 @@ int main(int argc, char *argv[], char *envp[])
 		}
 	}
 
+	log_set_loglevel(log_level);
+
 	if (early_init())
 		return -1;
 
@@ -798,7 +800,6 @@ int main(int argc, char *argv[], char *envp[])
 		return 1;
 	}
 
-	log_set_loglevel(log_level);
 
 	if (log_init(opts.output))
 		return 1;
-- 
2.14.4



More information about the CRIU mailing list