From d686fbb9c4d0db53fbfb0772d796c95c560a29b2 Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Mon, 19 Oct 2015 15:56:25 -0700 Subject: [PATCH] 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 --- libnetwork/endpoint.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnetwork/endpoint.go b/libnetwork/endpoint.go index 6331d93be5..fdd0bf6641 100644 --- a/libnetwork/endpoint.go +++ b/libnetwork/endpoint.go @@ -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