mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
ignore urllib3 warnings without gsa.py turning them off
This commit is contained in:
parent
d740f3bc6b
commit
fc7e67dd09
1 changed files with 3 additions and 0 deletions
3
demo.py
3
demo.py
|
@ -18,6 +18,7 @@ logging.basicConfig(
|
|||
|
||||
# Set sane log levels
|
||||
logging.getLogger("urllib3").setLevel(logging.WARNING)
|
||||
logging.getLogger("py.warnings").setLevel(logging.ERROR) # Ignore warnings from urllib3
|
||||
logging.getLogger("asyncio").setLevel(logging.WARNING)
|
||||
logging.getLogger("jelly").setLevel(logging.INFO)
|
||||
logging.getLogger("nac").setLevel(logging.INFO)
|
||||
|
@ -27,6 +28,8 @@ logging.getLogger("ids").setLevel(logging.DEBUG)
|
|||
logging.getLogger("bags").setLevel(logging.INFO)
|
||||
logging.getLogger("imessage").setLevel(logging.DEBUG)
|
||||
|
||||
logging.captureWarnings(True)
|
||||
|
||||
# Try and load config.json
|
||||
try:
|
||||
with open("config.json", "r") as f:
|
||||
|
|
Loading…
Reference in a new issue