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

Method emit

Lib/logging/handlers.py:681–694  ·  view source on GitHub ↗

Emit a record. Pickles the record and writes it to the socket in binary format. If there is an error with the socket, silently drop the packet. If there was a problem with the socket, re-establishes the socket.

(self, record)

Source from the content-addressed store, hash-verified

679 logging.Handler.handleError(self, record)
680
681 def emit(self, record):
682 """
683 Emit a record.
684
685 Pickles the record and writes it to the socket in binary format.
686 If there is an error with the socket, silently drop the packet.
687 If there was a problem with the socket, re-establishes the
688 socket.
689 """
690 try:
691 s = self.makePickle(record)
692 self.send(s)
693 except Exception:
694 self.handleError(record)
695
696 def close(self):
697 """

Callers

nothing calls this directly

Calls 3

makePickleMethod · 0.95
sendMethod · 0.95
handleErrorMethod · 0.95

Tested by

no test coverage detected