Print the event when failed to process it
This commit is contained in:
parent
4bebcc0e1f
commit
f695b7cfc8
@ -1003,7 +1003,7 @@ func (self *manager) watchForNewContainers(quit chan error) error {
|
|||||||
err = self.destroyContainer(event.Name)
|
err = self.destroyContainer(event.Name)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Warningf("Failed to process watch event: %v", err)
|
glog.Warningf("Failed to process watch event %+v: %v", event, err)
|
||||||
}
|
}
|
||||||
case <-quit:
|
case <-quit:
|
||||||
// Stop processing events if asked to quit.
|
// Stop processing events if asked to quit.
|
||||||
|
Loading…
Reference in New Issue
Block a user