Skip to content
Snippets Groups Projects
Commit 2a39e2a8 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-271: Made error message more descriptive if thread is hanging.

parent 4da3d227
No related branches found
No related tags found
1 merge request!85L2SS-271: Split statistics base classes off SSTs, cleaned those classes up a bit
...@@ -96,7 +96,8 @@ class UDPReceiver(Thread): ...@@ -96,7 +96,8 @@ class UDPReceiver(Thread):
self.join(self.DISCONNECT_TIMEOUT) self.join(self.DISCONNECT_TIMEOUT)
if self.isAlive(): if self.isAlive():
logger.error("UDP thread not shutting down for {}:{}".format(self.host, self.port)) # there is nothing we can do except wait (stall) longer, which could be indefinitely.
logger.error(f"UDP thread for {self.host}:{self.port} did not shut down after {self.DISCONNECT_TIMEOUT} seconds, just leaving it dangling. Please attach a debugger to thread ID {self.ident}.")
def __del__(self): def __del__(self):
self.disconnect() self.disconnect()
...@@ -74,7 +74,8 @@ class StatisticsCollector(Thread): ...@@ -74,7 +74,8 @@ class StatisticsCollector(Thread):
self.join(self.DISCONNECT_TIMEOUT) self.join(self.DISCONNECT_TIMEOUT)
if self.isAlive: if self.isAlive:
logger.error("Statistics thread not shutting down") # there is nothing we can do except wait (stall) longer, which could be indefinitely.
logger.error(f"Statistics thread did not shut down after {self.DISCONNECT_TIMEOUT} seconds, just leaving it dangling. Please attach a debugger to thread ID {self.ident}.")
def process_packet(self, packet): def process_packet(self, packet):
""" Update any information based on this packet. """ """ Update any information based on this packet. """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment