#NEWLINE# def log_stack( self , signal , frame ) : #NEWLINE# #INDENT# 'Signal handler to log the stack trace of the current thread.\n\n        For use with set_blocking_signal_threshold.\n        ' #NEWLINE# logging . warning ( 'IOLoop blocked for %f seconds in\n%s' , self . _blocking_signal_threshold , '' . join ( traceback . format_stack ( frame ) ) )