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
Python 3.8 adds a new keyword argument, stacklevel, to its findCaller function in commit dde9fdbe4539 ("bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)"). As Twisted is replacing this method with its own method, logging with STDLibLogObserver fails in Python 3.8.
This issue was discovered during Fedora's mass rebuild[0] with the Python 3.8 beta when a crochet test started failing[1].
#!CommitTicketReference repository="" revision="c0ce0d77be9152a8a3645c5bddb6e2f9cc56d98f"
Merge jeremycline:9668-jeremycline-stdlog-findCaller-38-compat: Add the stackLevel kwarg to STDLibLogObserver._findCaller
Author: jeremycline
Reviewer: hawkowl
Fixes: ticket:9668
Python 3.8 adds a new keyword argument, stacklevel, to its findCaller
function in commit dde9fdbe4539 ("bpo-33165: Added stacklevel parameter
to logging APIs. (GH-7424)"). As Twisted is replacing this method with
its own method, logging with STDLibLogObserver fails in Python 3.8. This
patch adds the argument, but does not use it as there is already a
stackDepth instance variable and the stackInfo on the method is also
ignored.
This patch fixes the logger tests that currently fail in Python 3.8.
Signed-off-by: Jeremy Cline <jcline@...>
Python 3.8 adds a new keyword argument, stacklevel, to its findCaller function in commit dde9fdbe4539 ("bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)"). As Twisted is replacing this method with its own method, logging with STDLibLogObserver fails in Python 3.8.
This issue was discovered during Fedora's mass rebuild[0] with the Python 3.8 beta when a crochet test started failing[1].
Pull request: #1161
[0] https://bugzilla.redhat.com/show_bug.cgi?id=1724145
[1] https://github.com/itamarst/crochet/blob/8b4178efcaff6d63562c4520cfb128bb9681f9b0/crochet/tests/test_setup.py#L349
Searchable metadata
The text was updated successfully, but these errors were encountered: