FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-33165: Added stacklevel parameter to logging APIs. by vsajip · Pull Request #7424 · python/cpython · GitHub

Repository navigation

bpo-33165: Added stacklevel parameter to logging APIs. - #7424

Merged
vsajip merged 2 commits into
python:masterfrom
vsajip:fix-33165
Jun 5, 2018
Merged

vsajip merged 2 commits into
python:masterfrom
vsajip:fix-33165

Conversation

vsajip commented Jun 5, 2018 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Comment thread Doc/library/logging.rst Outdated
The third keyword argument is *extra* which can be used to pass a
The third optional keyword argument is *stacklevel*, which defaults to ``1``.
If greater than 1, the corresponding number of stack frames are skipped
when computing the line number and function name set in the LogRecord

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should LogRecord be a link, i.e. :class:`LogRecord`?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, I will update the PR. Thanks for spotting it!

ncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yay! Thank you very much for implementing this :)

vsajip merged commit dde9fdb into python:master Jun 5, 2018
vsajip deleted the fix-33165 branch June 5, 2018 16:24
evandrocoan added a commit to evandrocoan/debugtools that referenced this pull request Dec 27, 2019
arguments but 3 were given due:

bpo-33165: Added stacklevel parameter to logging APIs
python/cpython#7424
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL