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

Method handle

Lib/logging/__init__.py:1669–1688  ·  view source on GitHub ↗

Call the handlers for the specified record. This method is used for unpickled records received from a socket, as well as those created locally. Logger-level filtering is applied.

(self, record)

Source from the content-addressed store, hash-verified

1667 self.handle(record)
1668
1669 def handle(self, record):
1670 """
1671 Call the handlers for the specified record.
1672
1673 This method is used for unpickled records received from a socket, as
1674 well as those created locally. Logger-level filtering is applied.
1675 """
1676 if self._is_disabled():
1677 return
1678
1679 self._tls.in_progress = True
1680 try:
1681 maybe_record = self.filter(record)
1682 if not maybe_record:
1683 return
1684 if isinstance(maybe_record, LogRecord):
1685 record = maybe_record
1686 self.callHandlers(record)
1687 finally:
1688 self._tls.in_progress = False
1689
1690 def addHandler(self, hdlr):
1691 """

Callers 3

_logMethod · 0.95
callHandlersMethod · 0.45

Calls 4

_is_disabledMethod · 0.95
callHandlersMethod · 0.95
isinstanceFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected