| |
@@ -144,10 +144,11 @@
|
| |
|
| |
# Send classic logs into syslog
|
| |
SHANDLER = logging.StreamHandler()
|
| |
- SHANDLER.setLevel(APP.config.get('log_level', 'INFO'))
|
| |
+ SHANDLER.setLevel(APP.config.get('LOG_LEVEL', 'INFO'))
|
| |
APP.logger.addHandler(SHANDLER)
|
| |
|
| |
LOG = APP.logger
|
| |
+ LOG.setLevel(APP.config.get('LOG_LEVEL', 'INFO'))
|
| |
|
| |
APP.wsgi_app = pagure.proxy.ReverseProxied(APP.wsgi_app)
|
| |
|
| |
Converting LOG_LEVEL to uppercase as Flask only reads keys in uppercase from the config file.
Also using it to set the level in APP.logger. I'm using 'INFO' as a default here as well, hope it's not a problem (in my machine, getEffectiveLevel() was returning WARNING when the level was not set directly in the logger).