mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 02:14:01 +01:00
Add exception logging. Fix typo
This commit is contained in:
parent
8c52160b07
commit
33f3624ff7
1 changed files with 3 additions and 3 deletions
|
@ -150,10 +150,10 @@ def wrap_request_handler(request_handler, include_metrics=False):
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
request_metrics.stop(
|
request_metrics.stop(
|
||||||
self.clock, request, self.__class__.__name__
|
self.clock, request
|
||||||
)
|
)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
logger.warn("Failed to stop metrics: %r", e)
|
||||||
return wrapped_request_handler
|
return wrapped_request_handler
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue