Commit 33cc3c76 authored by Piotr Szczesniak's avatar Piotr Szczesniak

Fixed logging in scheduler

parent 3994e5f7
...@@ -444,7 +444,7 @@ func (b *backoffEntry) tryLock() bool { ...@@ -444,7 +444,7 @@ func (b *backoffEntry) tryLock() bool {
// unlock returns the lock. panics if the lock isn't held // unlock returns the lock. panics if the lock isn't held
func (b *backoffEntry) unlock() { func (b *backoffEntry) unlock() {
if !atomic.CompareAndSwapInt32(&b.reqInFlight, 1, 0) { 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 { ...@@ -465,7 +465,7 @@ func (entry *backoffEntry) getBackoff(maxDuration time.Duration) time.Duration {
newDuration = maxDuration newDuration = maxDuration
} }
entry.backoff = newDuration 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 return duration
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment