mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Check if report_metrics is True
This commit is contained in:
parent
8d7ad44331
commit
6037349512
@ -144,9 +144,10 @@ def wrap_request_handler(request_handler, report_metrics):
|
|||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
request_metrics.stop(
|
if report_metrics:
|
||||||
self.clock, request, self.__class__.__name__
|
request_metrics.stop(
|
||||||
)
|
self.clock, request, self.__class__.__name__
|
||||||
|
)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return wrapped_request_handler
|
return wrapped_request_handler
|
||||||
|
Loading…
Reference in New Issue
Block a user