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)
| 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 | """ |
no test coverage detected