mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-09-27 17:30:50 -04:00
Merge pull request #1031 from matrix-org/erikj/measure_notifier
Add more Measure blocks
This commit is contained in:
commit
e65bc7d315
6 changed files with 182 additions and 178 deletions
|
@ -87,7 +87,7 @@ class Measure(object):
|
|||
self.db_txn_duration = self.start_context.db_txn_duration
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
if exc_type is not None or not self.start_context:
|
||||
if isinstance(exc_type, Exception) or not self.start_context:
|
||||
return
|
||||
|
||||
duration = self.clock.time_msec() - self.start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue