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

Method emit

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

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

Callers

nothing calls this directly

Calls 3

makePickleMethod · 0.95
sendMethod · 0.95
handleErrorMethod · 0.95

Tested by

no test coverage detected