From 46b59b79643c6cfb556dc15ec6c0d72fc4162d61 Mon Sep 17 00:00:00 2001 From: Santhosh Manohar Date: Tue, 29 Nov 2016 10:42:20 -0800 Subject: [PATCH] Fix incorrect debug message Signed-off-by: Santhosh Manohar --- libnetwork/resolver.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libnetwork/resolver.go b/libnetwork/resolver.go index 68e4831d53..ca3850c58e 100644 --- a/libnetwork/resolver.go +++ b/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,