summaryrefslogtreecommitdiff
path: root/libnetwork/bitseq
diff options
context:
space:
mode:
authorAbhinandan Prativadi <abhi@docker.com>2018-05-10 11:09:12 -0700
committerAbhinandan Prativadi <abhi@docker.com>2018-05-14 15:44:49 -0700
commit2f2811dd14acdeca0a917ec0a79fa458f59ea312 (patch)
tree42547a597b01ff128e78ef4aaebb9275437f71d3 /libnetwork/bitseq
parent60d8639a818b24def59e4f775ca1b5040eee6dc4 (diff)
downloaddocker-2f2811dd14acdeca0a917ec0a79fa458f59ea312.tar.gz
Adding logs for ipam state
Signed-off-by: Abhinandan Prativadi <abhi@docker.com>
Diffstat (limited to 'libnetwork/bitseq')
-rw-r--r--libnetwork/bitseq/sequence.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/libnetwork/bitseq/sequence.go b/libnetwork/bitseq/sequence.go
index 0069d495b7..4bd0f3ca5d 100644
--- a/libnetwork/bitseq/sequence.go
+++ b/libnetwork/bitseq/sequence.go
@@ -326,7 +326,6 @@ func (h *Handle) set(ordinal, start, end uint64, any bool, release bool, serial
}
h.Lock() // Acquire the lock back
}
- logrus.Debugf("Received set for ordinal %v, start %v, end %v, any %t, release %t, serial:%v curr:%d \n", ordinal, start, end, any, release, serial, h.curr)
if serial {
curr = h.curr
}
@@ -466,8 +465,8 @@ func (h *Handle) Unselected() uint64 {
func (h *Handle) String() string {
h.Lock()
defer h.Unlock()
- return fmt.Sprintf("App: %s, ID: %s, DBIndex: 0x%x, bits: %d, unselected: %d, sequence: %s",
- h.app, h.id, h.dbIndex, h.bits, h.unselected, h.head.toString())
+ return fmt.Sprintf("App: %s, ID: %s, DBIndex: 0x%x, Bits: %d, Unselected: %d, Sequence: %s Curr:%d",
+ h.app, h.id, h.dbIndex, h.bits, h.unselected, h.head.toString(), h.curr)
}
// MarshalJSON encodes Handle into json message