Commit c8729c22 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

criu: enable soccr logging

Initialize logging function and log_level for libsoccr.
Otherwise all soccr messages are skipped.

travis-ci: success for libsoccr debug/info messages
Reported-by: 's avatarAdrian Reber <adrian@lisas.de>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d0762eff
......@@ -53,6 +53,8 @@
#include "setproctitle.h"
#include "sysctl.h"
#include "../soccr/soccr.h"
struct cr_options opts;
void init_opts(void)
......@@ -686,6 +688,7 @@ int main(int argc, char *argv[], char *envp[])
if (log_init(opts.output))
return 1;
libsoccr_set_log(log_level, print_on_level);
pr_debug("Version: %s (gitid %s)\n", CRIU_VERSION, CRIU_GITID);
if (opts.deprecated_ok)
......
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