Disable logs from chardet

This commit is contained in:
Ritiek Malhotra
2020-05-20 12:32:21 +05:30
parent 6288e3c6e5
commit c1b3949edb

View File

@@ -9,7 +9,7 @@ from spotdl.command_line.exceptions import ArgumentError
# hardcode loglevel for dependencies so that they do not spew generic # hardcode loglevel for dependencies so that they do not spew generic
# log messages along with spotdl. # log messages along with spotdl.
for module in ("urllib3", "spotipy", "pytube"): for module in ("chardet", "urllib3", "spotipy", "pytube"):
logging.getLogger(module).setLevel(logging.CRITICAL) logging.getLogger(module).setLevel(logging.CRITICAL)
coloredlogs.DEFAULT_FIELD_STYLES = { coloredlogs.DEFAULT_FIELD_STYLES = {