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:
parent
33d336ac72
commit
d686fbb9c4
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue