mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
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{}
|
||||
err := s.helper.ExtractObj(s.key, &boundPods, false)
|
||||
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)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user