Print the event when failed to process it

This commit is contained in:
Yu-Ju Hong 2016-05-02 17:47:41 -07:00
parent 4bebcc0e1f
commit f695b7cfc8

View File

@ -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.