how can i disable logging? #2733
|
I have a ton of log messages from python-telegram-api and i want to disable logging for this library. I've tried this: |
Answered by
zanieb
Jun 2, 2023
Replies: 1 comment 1 reply
|
|
1 reply
Answer selected by
danila-schelkov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

logging.getLogger("httpx").setLevel("CRITICAL")should do it — the handler is likely for your "root" logger. You could also disable propagationlogging.getLogger("httpx").propagate = False