[lxc-devel] [lxd/master] lxd/container_lxc: report correct dev type in log

brauner on Github lxc-bot at linuxcontainers.org
Mon Oct 24 21:03:04 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 367 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161024/12078cdd/attachment.bin>
-------------- next part --------------
From fe94bc593cf531206517d17ff9c151ed59b1f1b2 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at canonical.com>
Date: Mon, 24 Oct 2016 23:02:04 +0200
Subject: [PATCH] lxd/container_lxc: report correct dev type in log

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>
---
 lxd/container_lxc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index f29c4ea..e269cb7 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -4482,7 +4482,7 @@ func (c *containerLXC) removeUnixDeviceNum(m shared.Device, major int, minor int
 
 	err := c.removeUnixDevice(temp)
 	if err != nil {
-		shared.LogError("failed to remove device", log.Ctx{"err": err, "gpu": path, "container": c.Name()})
+		shared.LogError("failed to remove device", log.Ctx{"err": err, m["type"]: path, "container": c.Name()})
 		return err
 	}
 


More information about the lxc-devel mailing list