From 3f0e7e790b743d3fb8fc0169b965b52c1c10c191 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 24 Jun 2014 22:05:25 -0700 Subject: [PATCH] Less verbose logging for "normal" things. Don't log things that we expect to happen every sync loop, unless the user asks for --v > 0. --- pkg/kubelet/kubelet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/kubelet.go b/pkg/kubelet/kubelet.go index ef1c8b596f8..8209dc5600b 100644 --- a/pkg/kubelet/kubelet.go +++ b/pkg/kubelet/kubelet.go @@ -583,7 +583,7 @@ func (kl *Kubelet) SyncAndSetupEtcdWatch(updateChannel chan<- manifestUpdate) { go kl.WatchEtcd(watchChannel, updateChannel) kl.getKubeletStateFromEtcd(key, updateChannel) - glog.Infof("Setting up a watch for configuration changes in etcd for %s", key) + glog.V(1).Infof("Setting up a watch for configuration changes in etcd for %s", key) kl.EtcdClient.Watch(key, 0, true, watchChannel, done) } } @@ -718,7 +718,7 @@ func (kl *Kubelet) SyncManifests(config []api.ContainerManifest) error { continue } } else { - glog.Infof("%#v exists as %v", element.Name, actualName) + glog.V(1).Infof("%#v exists as %v", element.Name, actualName) } desired[actualName] = true }