Skip to content

Commit

Permalink
Adds replication controller name to "Too many|few" logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Reed committed Feb 12, 2015
1 parent 3bc8f4e commit 38230ef
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 38230ef

Please sign in to comment.