mirror of https://github.com/k3s-io/k3s
Merge pull request #4271 from ArtfulCoder/logging_etcd
Updated etcd-pod-dir-fetch logging.pull/6/head
commit
c55921676c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue