Blame SOURCES/flannel-Clarify-the-logging-when-VXLAN-interface-creation-fa.patch

16274f
From b3a68558eecd794d7d27af50e0afbc6736939c9e Mon Sep 17 00:00:00 2001
16274f
From: "John W. Linville" <linville@tuxdriver.com>
16274f
Date: Fri, 6 Mar 2015 14:49:20 -0500
16274f
Subject: [PATCH] Clarify the logging when VXLAN interface creation fails
16274f
16274f
---
16274f
 backend/vxlan/vxlan.go | 3 ++-
16274f
 1 file changed, 2 insertions(+), 1 deletion(-)
16274f
16274f
diff --git a/backend/vxlan/vxlan.go b/backend/vxlan/vxlan.go
16274f
index fb0c91f201fa..a6fa77905440 100644
16274f
--- a/backend/vxlan/vxlan.go
16274f
+++ b/backend/vxlan/vxlan.go
16274f
@@ -79,7 +79,8 @@ func (vb *VXLANBackend) Init(extIface *net.Interface, extIP net.IP) (*backend.Su
16274f
 		if err == nil {
16274f
 			break
16274f
 		} else {
16274f
-			log.Warning("Failed to create VXLAN interface, retrying...")
16274f
+			log.Error("VXLAN init: ", err)
16274f
+			log.Info("Retrying in 1 second...")
16274f
 
16274f
 			// wait 1 sec before retrying
16274f
 			time.Sleep(1*time.Second)
16274f
-- 
16274f
2.1.0
16274f
16274f