self.irker.debug(1, "XMIT_TTL bump (%s transmission) at %s" % (self.servername, time.asctime()))
self.queue.task_done()
except:
- (exc_type, _exc_value, _exc_traceback) = sys.exc_info()
+ (exc_type, _exc_value, exc_traceback) = sys.exc_info()
self.irker.logerr("exception %s in thread for %s" % \
(exc_type, self.servername))
+ # This is so we can see tracebacks for errors inside the thread
+ # when we need to be able to for debugging purposes.
+ if debuglvl > 0:
+ raise exc_type, exc_value, exc_traceback
def live(self):
"Should this connection not be scavenged?"
return self.status != "expired"