Reduce level of noise in debug logs from containers dying

This commit is contained in:
Bryan Boreham committed 2015-06-10 17:24:36 +01:00
1 parent c301e6a380
commit e9d194327a
1 file changed
+5 -2
+5 -2
View File
@@ -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.
func (alloc *Allocator) ContainerDied(ident string) error {
alloc.debugln("Container", ident, "died; releasing addresses")
return alloc.Delete(ident)
err := 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