#NEWLINE# def handleError( self , record ) : #NEWLINE# #INDENT# '\n        Handle an error during logging.\n\n        An error has occurred during logging. Most likely cause -\n        connection lost. Close the socket so that we can retry on the\n        next event.\n        ' #NEWLINE# if ( record . closeOnError and self . sock ) : #NEWLINE# #INDENT# self . sock . close ( ) #NEWLINE# self . sock = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . Handler . handleError ( self , record )