Skip to content

Commit

Permalink
start: pass LXC_LOG_LEVEL to hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Sep 24, 2017
1 parent 593c29a commit 7ed15e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/start.c
Expand Up @@ -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");
Expand Down

0 comments on commit 7ed15e7

Please sign in to comment.