Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
 def cry_handler(*args):
     """Signal handler logging the stacktrace of all active threads."""
     with in_sighandler():
         safe_say(cry())
Exemplo n.º 4
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())
Exemplo n.º 5
0
 def cry_handler(signum, frame):
     """Signal handler logging the stacktrace of all active threads."""
     logger.error("\n" + cry())