From: Christian Brauner Date: Wed, 13 Sep 2017 03:02:50 +0000 (+0200) Subject: start: pass LXC_LOG_LEVEL to hooks X-Git-Tag: lxc-2.0.9~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ed15e7b77dac1e82b82376b562455052115acc1;p=thirdparty%2Flxc.git start: pass LXC_LOG_LEVEL to hooks Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index fd7ba46d1..eedbae50c 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -628,6 +628,9 @@ int lxc_init(const char *name, struct lxc_handler *handler) if (setenv("LXC_CGNS_AWARE", "1", 1)) SYSERROR("Failed to set environment variable LXC_CGNS_AWARE=1."); + + if (setenv("LXC_LOG_LEVEL", lxc_log_priority_to_string(handler->conf->loglevel), 1)) + SYSERROR("Failed to set environment variable LXC_CGNS_AWARE=1."); /* End of environment variable setup for hooks. */ TRACE("set environment variables");