Closed AshleyJackson closed 2 years ago
TIL: Submodules can have their own logging, that sometimes doesn't listen to Root logging configurations.
I fixed this with the below code at the beginning of config.py
WERKZEUG_LOGGER = logging.getLogger('werkzeug')
BOT_LOG_LEVEL = logging.WARNING
WERKZEUG_LOGGER.setLevel(BOT_LOG_LEVEL)
Describe the bug When I have configured the Log Level to "WARNING", werkzeug always outputs the Webserver logs as in "INFO" to the console.
BOT_LOG_LEVEL = logging.WARNING
To Reproduce
Enable the Webserver in Errbot and build a webhook using the above code.
Expected behavior Zero console logging under the INFO level when config level is set to WARNING
Screenshots![image](https://user-images.githubusercontent.com/12793989/153107857-502de51e-5f0f-4824-a833-9b72e9aaeacd.png)
Environment (please complete the following information):