From 33cc3c76531a18c8d07a9a273e90789181eb7aa4 Mon Sep 17 00:00:00 2001 From: Piotr Szczesniak Date: Sat, 5 Mar 2016 10:53:06 +0100 Subject: [PATCH] Fixed logging in scheduler --- plugin/pkg/scheduler/factory/factory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/pkg/scheduler/factory/factory.go b/plugin/pkg/scheduler/factory/factory.go index 3c5c7a7e701..4f785fd7853 100644 --- a/plugin/pkg/scheduler/factory/factory.go +++ b/plugin/pkg/scheduler/factory/factory.go @@ -444,7 +444,7 @@ func (b *backoffEntry) tryLock() bool { // unlock returns the lock. panics if the lock isn't held func (b *backoffEntry) unlock() { if !atomic.CompareAndSwapInt32(&b.reqInFlight, 1, 0) { - panic(fmt.Sprintf("unexpected state on unlocking: %v", b)) + panic(fmt.Sprintf("unexpected state on unlocking: %+v", b)) } } @@ -465,7 +465,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration { newDuration = maxDuration } entry.backoff = newDuration - glog.V(4).Infof("Backing off %s for pod %v", duration.String(), entry) + glog.V(4).Infof("Backing off %s for pod %+v", duration.String(), entry) return duration }