mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 13:34:18 -05:00
Check if report_metrics is True
This commit is contained in:
parent
8d7ad44331
commit
6037349512
@ -144,6 +144,7 @@ def wrap_request_handler(request_handler, report_metrics):
|
|||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
try:
|
try:
|
||||||
|
if report_metrics:
|
||||||
request_metrics.stop(
|
request_metrics.stop(
|
||||||
self.clock, request, self.__class__.__name__
|
self.clock, request, self.__class__.__name__
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user