#NEWLINE# def log_failure( self , message , level = 'error' ) : #NEWLINE# #INDENT# error = str ( self . parser . configuration . tokeniser . error ) #NEWLINE# report = ( ( '%s\nreason: %s' % ( message , error ) ) if error else message ) #NEWLINE# self . logger . reactor ( self , level )