add err to glog

This commit is contained in:
lojies
2016-09-09 17:03:27 +08:00
parent 884e32c8fd
commit fbaf66850d

View File

@@ -504,7 +504,7 @@ func (kd *KubeDNS) Records(name string, exact bool) (retval []skymsg.Service, er
if !kd.isHeadlessServiceRecord(&val) { if !kd.isHeadlessServiceRecord(&val) {
ok, err := kd.serviceWithClusterIPHasEndpoints(&val) ok, err := kd.serviceWithClusterIPHasEndpoints(&val)
if err != nil { if err != nil {
glog.V(2).Infof("federation service query: unexpected error while trying to find if service has endpoint: %v") glog.V(2).Infof("federation service query: unexpected error while trying to find if service has endpoint: %v", err)
continue continue
} }
if !ok { if !ok {