Add exception logging. Fix typo

This commit is contained in:
Erik Johnston 2016-08-22 10:49:31 +01:00
parent 8c52160b07
commit 33f3624ff7

View File

@ -150,10 +150,10 @@ def wrap_request_handler(request_handler, include_metrics=False):
finally:
try:
request_metrics.stop(
self.clock, request, self.__class__.__name__
self.clock, request
)
except:
pass
except Exception as e:
logger.warn("Failed to stop metrics: %r", e)
return wrapped_request_handler