-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for caplog set_level()
should make it clearer it's a threshold
#9146
Comments
Thanks @MetRonnie for the detailed report. Would you like to contribute that change? |
Happy to, will open a PR from my non-work account |
Hey @nicoddemus and @MetRonnie, I am new to contributing to open source and I'm looking for a good first issue. Could you please kindly guide me if I can pick up this or any issue which you think might be useful for me to start with? |
Thanks @MetRonnie and @Vijay-Arora. Just need to update the docstring at: Lines 449 to 458 in f65dfc3
|
Updated logging.py for pytest-dev#9146
Hey @nicoddemus and @MetRonnie, I did it! As it's my first time, let me know in case any change is required. |
Also @nicoddemus, I first forked it and then contributed; I was wondering if we can directly open a PR without forking and creating our own branch in this repository itself? Is that allowed? |
Only for project contributors (as there are security concerns to let anyone commit to the repository). |
Also I don't see a PR? You might have just pushed that branch to a fork, but you need to open a Pull Request. Consult GitHub's help for more information. 👍 |
Oh okay. Thanks for the quick response, @nicoddemus! |
Hmm, okay, thanks for the heads up! Will update here as soon as I see how to make that work. |
Updated logging.py for pytest-dev#9146
Hey @nicoddemus, I added a PR; it's visible now but i think i missed some of the points. Could you please take a look at it and give me some feedback on it? |
Hello @Vijay-Arora @nicoddemus @MetRonnie! I am also just getting started with open-source and wanted to start contributing. I just had a question whether this issue is currently open or has it been closed? |
@kushagrabhushan This is still open but there is already a pull request #9149 to close it (you can see this in the "Linked pull requests" section in the sidebar at the top) |
@kushagrabhushan, I'm actively working on it, I'll be picking this up from where I left this on Friday. |
Is this still needing action and able to be acted on? I'm looking to get invoolved in hacktoberfest 2022, and this issue is now a year old. FWIW I understand from the users persepective how pytest works and how the caplog process can be utilised in tests. |
Is this issue still open, if yes i would like to work on it |
@Vijay-Arora was working on it it seems. |
What's the problem this feature will solve?
The documentation for
caplog.set_level()
saysThis does not make it clear that it's setting the threshold level for capturing logging.
Describe the solution you'd like
The Python logging documentation makes this clear for
logging.setLevel()
:caplog.set_level()
ought to do the same.Additional context
The only reason I know it's a threshold is because I tried running
pytest -rA
with different levels set in caplog and the output contained messages at that level and aboveThe text was updated successfully, but these errors were encountered: