This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author joukewitteveen
Recipients andrei.avk, joukewitteveen
Date 2021-11-09.07:52:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636444367.86.0.546265954953.issue45171@roundup.psfhosted.org>
In-reply-to
Content
I would expect the opposite. Since the issue is visible only in certain cases (shortcut calls such as `logging.info` over `logger.info`, or redirected calls such as `logger.warn` which adds a stack frame for redirecting to `logger.warning`), any code that uses the stacklevel argument is probably broken in subtle ways. It will work fine for the anticipated case, but for instance behave weirdly in interactive sessions such as in a debugger.

Added to this, if we want to fix the documentation instead of the logging module code, we have to come up with an understandable description of a behavior that is really inconsistent and odd. We would probably spend most of the documentation explaining edge cases.
History
Date User Action Args
2021-11-09 07:52:47joukewitteveensetrecipients: + joukewitteveen, andrei.avk
2021-11-09 07:52:47joukewitteveensetmessageid: <1636444367.86.0.546265954953.issue45171@roundup.psfhosted.org>
2021-11-09 07:52:47joukewitteveenlinkissue45171 messages
2021-11-09 07:52:47joukewitteveencreate