[lxc-devel] [lxd/master] correctly set liblxc loglevel to debug when in --debug mode

tych0 on Github lxc-bot at linuxcontainers.org
Mon Oct 31 19:44:39 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 361 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161031/b20c7395/attachment.bin>
-------------- next part --------------
From a79e8ad5c4d107763d84e551d7c99799262b0ff8 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Mon, 31 Oct 2016 19:44:05 +0000
Subject: [PATCH] correctly set liblxc loglevel to debug when in --debug mode

Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 lxd/container_lxc.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 640618e..1917180 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -537,6 +537,7 @@ func (c *containerLXC) initLXC() error {
 
 	logLevel := "warn"
 	if debug {
+		logLevel = "debug"
 	} else if verbose {
 		logLevel = "info"
 	} else {


More information about the lxc-devel mailing list