Skip to content
Snippets Groups Projects
Commit 96bcf8e7 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-772: no more need for expensive logging of receiver.nr_of_messages_in_queue

parent 4abb3906
No related branches found
No related tags found
1 merge request!8Cobalt2 multithreading fix
...@@ -1435,12 +1435,12 @@ class BusListener: ...@@ -1435,12 +1435,12 @@ class BusListener:
except Exception as e: except Exception as e:
logger.exception("after_receive_message() failed: %s", e) logger.exception("after_receive_message() failed: %s", e)
try: # try:
num_messages_remaining = receiver.nr_of_messages_in_queue() # num_messages_remaining = receiver.nr_of_messages_in_queue()
if num_messages_remaining > 0: # if num_messages_remaining > 0:
logger.info("%d message remaining in %s on %s", num_messages_remaining, self.address, self.broker) # logger.info("%d messages remaining in %s on %s", num_messages_remaining, self.address, self.broker)
except Exception as e: # except Exception as e:
logger.exception("after_receive_message() failed: %s", e) # logger.exception("after_receive_message() failed: %s", e)
except Exception as e: except Exception as e:
# Unknown problem in the library. Report this and continue. # Unknown problem in the library. Report this and continue.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment