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
touch up wording
  • Loading branch information
adriangb committed May 10, 2022
commit a69e76a474c59adc7c7b0c02d615df762a304fab
4 changes: 2 additions & 2 deletions Doc/library/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@ empty string, all events are passed.

Is the specified record to be logged? Returns zero for no, nonzero for

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the change, this should be `a 'falsy' value for no, and a 'truthy' value for yes.

yes. Filters can also modify log records in-place or return a completely

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also -> either

different log-record which will replace the original log record without
modifying it.
different record instance which will replace the original
log record without modifying it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the without modifying it should be replaced by in any future processing of the event.


Note that filters attached to handlers are consulted before an event is
emitted by the handler, whereas filters attached to loggers are consulted
Expand Down