[CRIU] [PATCH 20/22] criu: log -- Attach compel log engine
Cyrill Gorcunov
gorcunov at openvz.org
Wed Oct 19 12:21:35 PDT 2016
Otherwise we won't see what's going on.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
criu/log.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/criu/log.c b/criu/log.c
index 6dd85307415a..2319dfc6a4ba 100644
--- a/criu/log.c
+++ b/criu/log.c
@@ -12,6 +12,8 @@
#include <fcntl.h>
+#include <compel/compel.h>
+
#include "compiler.h"
#include "asm/types.h"
#include "util.h"
@@ -154,6 +156,7 @@ int log_init(const char *output)
if (fd < 0)
goto err;
+ compel_log_set_fd(fd);
return 0;
err:
@@ -195,6 +198,7 @@ void log_set_loglevel(unsigned int level)
current_loglevel = DEFAULT_LOGLEVEL;
else
current_loglevel = level;
+ compel_log_set_loglevel(level);
}
unsigned int log_get_loglevel(void)
--
2.7.4
More information about the CRIU
mailing list