Ejemplo n.º 1
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
Ejemplo n.º 2
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     set_in_sighandler(True)
     try:
         safe_say(cry())
     finally:
         set_in_sighandler(False)
Ejemplo n.º 3
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     with in_sighandler():
         safe_say(cry())
Ejemplo n.º 4
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())
Ejemplo n.º 5
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())