log cfgzErr if err happened

We need to log err info when err info returned by initConfigz(),no matter what the result of utilconfig.DefaultFeatureGate.DynamicKubeletConfig() is and
whether s.RunOnce is true or not.
We should log the initKubeletConfigSync() err info too.
pull/6/head
NickrenREN 2017-01-03 22:05:02 +08:00
parent 4ac5f278c5
commit 59fef371b1
1 changed files with 2 additions and 0 deletions

View File

@ -356,6 +356,8 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.KubeletDeps) (err error) {
if err != nil { if err != nil {
return err return err
} }
} else {
glog.Errorf("failed to init dynamic Kubelet configuration sync: %v", err)
} }
} }
} }