mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:26:03 -04:00
Clean up TransactionQueue
This commit is contained in:
parent
5aeadb7414
commit
ca8abfbf30
4 changed files with 165 additions and 224 deletions
|
@ -78,7 +78,6 @@ class Measure(object):
|
|||
self.start = self.clock.time_msec()
|
||||
self.start_context = LoggingContext.current_context()
|
||||
if not self.start_context:
|
||||
logger.warn("Entered Measure without log context: %s", self.name)
|
||||
self.start_context = LoggingContext("Measure")
|
||||
self.start_context.__enter__()
|
||||
self.created_context = True
|
||||
|
@ -99,7 +98,7 @@ class Measure(object):
|
|||
if context != self.start_context:
|
||||
logger.warn(
|
||||
"Context has unexpectedly changed from '%s' to '%s'. (%r)",
|
||||
context, self.start_context, self.name
|
||||
self.start_context, context, self.name
|
||||
)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue