Fix for logging
@@ -55,6 +55,7 @@ class RequestTimeTracker:
def __init__(self, instance_count):
self.instance_count = instance_count
self._requests = {}
+ self.messaged = []
def __contains__(self, item):
return item in self._requests
@@ -286,6 +287,8 @@ class Monitor(HasActionQueue, PluginLoaderHelper):
might have been reset due to view change due to which this method
returns None
"""
+ self.requestTracker.messaged = \
+ [messaged for messaged in self.requestTracker.messaged if messaged[0] not in reqIdrs]
now = time.perf_counter()
durations = {}
for identifier, reqId in reqIdrs:
@@ -343,6 +346,9 @@ class Monitor(HasActionQueue, PluginLoaderHelper):
if len(unordereds) == 0:
return
+ for messaged in self.requestTracker.messaged:
+ unordereds.remove(messaged)
+ self.requestTracker.messaged.extend(unordereds)
for handler in self.unordered_requests_handlers:
handler(unordereds)
for unordered in unordereds:
