Handle maskable error during endpoint delete

Do not log unncessary warning messages when you get
maskable error from driver during an endpoint delete.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
Jana Radhakrishnan 2015-10-19 15:56:25 -07:00
parent 33d336ac72
commit d686fbb9c4

View file

@ -536,7 +536,10 @@ func (ep *endpoint) deleteEndpoint() error {
if _, ok := err.(types.ForbiddenError); ok {
return err
}
log.Warnf("driver error deleting endpoint %s : %v", name, err)
if _, ok := err.(types.MaskableError); !ok {
log.Warnf("driver error deleting endpoint %s : %v", name, err)
}
}
return nil