Log kubelet startup error messages

This commit is contained in:
Yu-Ju Hong 2016-02-09 17:55:51 -08:00
parent b3bc741d0d
commit 0eb04cb433

View File

@ -262,7 +262,14 @@ func UnsecuredKubeletConfig(s *options.KubeletServer) (*KubeletConfig, error) {
// Otherwise, the caller is assumed to have set up the KubeletConfig object and all defaults
// will be ignored.
func Run(s *options.KubeletServer, kcfg *KubeletConfig) error {
var err error
err := run(s, kcfg)
if err != nil {
glog.Errorf("Failed running kubelet: %v", err)
}
return err
}
func run(s *options.KubeletServer, kcfg *KubeletConfig) (err error) {
if s.LockFilePath != "" {
glog.Infof("aquiring lock on %q", s.LockFilePath)
if err := flock.Acquire(s.LockFilePath); err != nil {