Do not log chardet INFO and DEBUG levels

This commit is contained in:
Davte 2020-11-16 23:05:18 +01:00
parent 135442dcd6
commit 668822fc21
Signed by: Davte
GPG Key ID: 209AE674A0007425
2 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0"
__version__ = "2.7.0"
__version__ = "2.7.1"
__maintainer__ = "Davide Testa"
__contact__ = "t.me/davte"

View File

@ -60,6 +60,8 @@ from .utilities import (
# Do not log aiohttp `INFO` and `DEBUG` levels
logging.getLogger('aiohttp').setLevel(logging.WARNING)
# Same with chardet
logging.getLogger('chardet').setLevel(logging.WARNING)
# Some methods are not implemented yet: that's the reason behind the following statement