MCPcopy Index your code
hub / github.com/python/cpython / handleError

Method handleError

Lib/logging/handlers.py:671–683  ·  view source on GitHub ↗

Handle an error during logging. An error has occurred during logging. Most likely cause - connection lost. Close the socket so that we can retry on the next event.

(self, record)

Source from the content-addressed store, hash-verified

669 return slen + s
670
671 def handleError(self, record):
672 """
673 Handle an error during logging.
674
675 An error has occurred during logging. Most likely cause -
676 connection lost. Close the socket so that we can retry on the
677 next event.
678 """
679 if self.closeOnError and self.sock:
680 self.sock.close()
681 self.sock = None #try to reconnect next time
682 else:
683 logging.Handler.handleError(self, record)
684
685 def emit(self, record):
686 """

Callers 7

emitMethod · 0.95
emitMethod · 0.45
emitMethod · 0.45
emitMethod · 0.45
emitMethod · 0.45
emitMethod · 0.45
emitMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected