Updated logging. If etcd-pod-dir-fetch fails because dir was absent, an info message is logged. 2) For all other reasons, the regular error message is logged.
This commit is contained in:
@@ -61,6 +61,10 @@ func (s *sourceEtcd) run() {
|
|||||||
boundPods := api.BoundPods{}
|
boundPods := api.BoundPods{}
|
||||||
err := s.helper.ExtractObj(s.key, &boundPods, false)
|
err := s.helper.ExtractObj(s.key, &boundPods, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if (tools.IsEtcdNotFound(err)) {
|
||||||
|
glog.V(4).Infof("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
|
glog.Errorf("etcd failed to retrieve the value for the key %q. Error: %v", s.key, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user