From 38230ef12fbf318e6012cb965711bebcf96c225c Mon Sep 17 00:00:00 2001 From: Steve Reed Date: Thu, 12 Feb 2015 09:18:56 -0800 Subject: [PATCH] Adds replication controller name to "Too many|few" logging --- pkg/controller/replication_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/replication_controller.go b/pkg/controller/replication_controller.go index 6151edf68eb38..ba9353c585f21 100644 --- a/pkg/controller/replication_controller.go +++ b/pkg/controller/replication_controller.go @@ -198,7 +198,7 @@ func (rm *ReplicationManager) syncReplicationController(controller api.Replicati diff *= -1 wait := sync.WaitGroup{} wait.Add(diff) - glog.V(2).Infof("Too few replicas, creating %d\n", diff) + glog.V(2).Infof("Too few \"%s\" replicas, creating %d\n", controller.Name, diff) for i := 0; i < diff; i++ { go func() { defer wait.Done() @@ -207,7 +207,7 @@ func (rm *ReplicationManager) syncReplicationController(controller api.Replicati } wait.Wait() } else if diff > 0 { - glog.V(2).Infof("Too many replicas, deleting %d\n", diff) + glog.V(2).Infof("Too many \"%s\" replicas, deleting %d\n", controller.Name, diff) wait := sync.WaitGroup{} wait.Add(diff) for i := 0; i < diff; i++ {