mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 20:53:52 +01:00
Check if report_metrics is True
This commit is contained in:
parent
8d7ad44331
commit
6037349512
1 changed files with 4 additions and 3 deletions
|
@ -144,9 +144,10 @@ def wrap_request_handler(request_handler, report_metrics):
|
|||
)
|
||||
finally:
|
||||
try:
|
||||
request_metrics.stop(
|
||||
self.clock, request, self.__class__.__name__
|
||||
)
|
||||
if report_metrics:
|
||||
request_metrics.stop(
|
||||
self.clock, request, self.__class__.__name__
|
||||
)
|
||||
except:
|
||||
pass
|
||||
return wrapped_request_handler
|
||||
|
|
Loading…
Reference in a new issue