You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-07-15 11:30:42 [error ] bob alice fred
2023-07-15 11:30:42 [error ] bob alice fred
Actual output:
2023-07-15 11:30:42 [error ] bob alice fred
Traceback (most recent call last):
File "/Users/alex/Work/syndis/aftra/debug/2023-07-13-logging.py", line 30, in <module>
log.exception("%s %s %s", "bob", "alice", "fred")
TypeError: exception() takes 2 positional arguments but 5 were given
FilteringBoundLogger
exception
call fails with positional arguments.Example
Expected output:
Actual output:
Some historical digging
b71aabb#diff-b87fe76f9eed7fd535af19eade4ac979499ddaaaba4611af36cc59f4b7f247fc introduced the
exception
method without the*args
part of the signature.That implementation was also later used for the
exception
method used byFilteringBoundLogger
hereA later fix was made to exception to "add pos arg support to exception" here
But no corresponding fix was made to the functions found in
_log_levels.py
.Question
Any reason I shouldn't provide a fix, that adjusts the
_log_levels.py
arguments to include*args
and pass them through to the error call?The text was updated successfully, but these errors were encountered: