Explorar o código

Fix incorrect debug message

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
Santhosh Manohar %!s(int64=8) %!d(string=hai) anos
pai
achega
46b59b7964
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      libnetwork/resolver.go

+ 6 - 2
libnetwork/resolver.go

@@ -418,8 +418,12 @@ func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) {
 			}
 
 			execErr := r.backend.ExecFunc(extConnect)
-			if execErr != nil || err != nil {
-				logrus.Debugf("Connect failed, %s", err)
+			if execErr != nil {
+				logrus.Warn(execErr)
+				continue
+			}
+			if err != nil {
+				logrus.Warnf("Connect failed: %s", err)
 				continue
 			}
 			logrus.Debugf("Query %s[%d] from %s, forwarding to %s:%s", name, query.Question[0].Qtype,