How to ignore pytest warning logs? #9853
Unanswered
Pranjilagrawal
asked this question in
Q&A
Replies: 1 comment
|
That message is a Python logging record, not a Python It comes from the If you simply do not want pytest to show that logger, current pytest supports: pytest --log-disable=urllib3.connectionpoolOr configure the logger itself: import logging
logging.getLogger("urllib3.connectionpool").setLevel(logging.ERROR)That suppresses its WARNING-level messages while leaving other loggers alone. I would also check why the connection pool is becoming full if that is unexpected, because suppressing the log only hides the symptom; it does not change urllib3's connection-pool behavior. Please mark this answer as accepted if it helped, thank you. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, I need one help,i have searched everywhere,tried all the workarounds but no luck.
I get this warning message "[WARNING] connectionpool.py:303 Connection pool is full, discarding connection: 127.0.0.1" in my logs.
For other warnings i use this piece of code in pytest.ini file --
Can someone help me what i should use to get rid of above warning message?
Thanks in advance!
All reactions