MCPcopy Index your code
hub / github.com/RustPython/RustPython / handleError

Method handleError

Lib/logging/handlers.py:667–679  ·  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

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

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