Queer European MD passionate about IT
Browse Source

Do not log chardet `INFO` and `DEBUG` levels

Davte 4 years ago
parent
commit
668822fc21
2 changed files with 3 additions and 1 deletions
  1. 1 1
      davtelepot/__init__.py
  2. 2 0
      davtelepot/bot.py

+ 1 - 1
davtelepot/__init__.py

@@ -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"
 

+ 2 - 0
davtelepot/bot.py

@@ -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