Skip to content

Commit

Permalink
Merge pull request kubernetes#4386 from smreed/rc-logging
Browse files Browse the repository at this point in the history
Adds replication controller name to "Too many|few" logging
  • Loading branch information
saad-ali committed Feb 12, 2015
2 parents 3bc8f4e + 38230ef commit 46f4351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/replication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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++ {
Expand Down

0 comments on commit 46f4351

Please sign in to comment.