Reduce level of noise in debug logs from containers dying
This commit is contained in:
1 parent
c301e6a380
commit
e9d194327a
1 file changed
+5
-2
+5
-2
@@ -214,8 +214,11 @@ func (alloc *Allocator) Claim(ident string, addr address.Address, cancelChan <-c
|
|||||||
|
|
||||||
// ContainerDied is provided to satisfy the updater interface; does a 'Delete' underneath. Sync.
|
// ContainerDied is provided to satisfy the updater interface; does a 'Delete' underneath. Sync.
|
||||||
func (alloc *Allocator) ContainerDied(ident string) error {
|
func (alloc *Allocator) ContainerDied(ident string) error {
|
||||||
alloc.debugln("Container", ident, "died; releasing addresses")
|
err := alloc.Delete(ident)
|
||||||
return alloc.Delete(ident)
|
if err == nil {
|
||||||
|
alloc.debugln("Container", ident, "died; released addresses")
|
||||||
|
}
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete (Sync) - release all IP addresses for container with given name
|
// Delete (Sync) - release all IP addresses for container with given name
|
||||||
|
|||||||
Reference in new issue
Block a user