[lxc-devel] [lxd/master] also show warnings on c/r errors

tych0 on Github lxc-bot at linuxcontainers.org
Mon Sep 26 17:31:51 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 428 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160926/abf5af20/attachment.bin>
-------------- next part --------------
From b7129b8ff40f9d849e6889a76ded85fd43e4380c Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.andersen at canonical.com>
Date: Mon, 26 Sep 2016 17:31:18 +0000
Subject: [PATCH] also show warnings on c/r errors

Some of these are relevant and potentially useful in debugging.

Signed-off-by: Tycho Andersen <tycho.andersen 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 269c40c..99282dc 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -3045,7 +3045,7 @@ func getCRIULogErrors(imagesDir string, method string) (string, error) {
 	ret := []string{}
 	for scanner.Scan() {
 		line := scanner.Text()
-		if strings.Contains(line, "Error") {
+		if strings.Contains(line, "Error") || strings.Contains(line, "Warn") {
 			ret = append(ret, scanner.Text())
 		}
 	}


More information about the lxc-devel mailing list