Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
edit docstring
  • Loading branch information
adriangb committed May 10, 2022
commit 1e4d27f779a15a3a48f50c025ae88c6bbbcff94f
6 changes: 4 additions & 2 deletions Lib/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,10 @@ def handle(self, record):

Emission depends on filters which may have been added to the handler.
Wrap the actual emission of the record with acquisition/release of
the I/O thread lock. Returns whether the filter passed the record for
emission.
the I/O thread lock.

Returns an instance of the log record that was emitted
if it passed all filters, otherwise a falsy value is returned.
"""
rv = self.filter(record)
if isinstance(rv, LogRecord):
Expand Down