Message406001
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. |
|
Date |
User |
Action |
Args |
2021-11-09 07:52:47 | joukewitteveen | set | recipients:
+ joukewitteveen, andrei.avk |
2021-11-09 07:52:47 | joukewitteveen | set | messageid: <1636444367.86.0.546265954953.issue45171@roundup.psfhosted.org> |
2021-11-09 07:52:47 | joukewitteveen | link | issue45171 messages |
2021-11-09 07:52:47 | joukewitteveen | create | |
|