1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-23 04:27:46 +01:00

[fix] show debug output when enabled

This commit is contained in:
Thomas Pointhuber 2015-08-24 11:03:06 +02:00
parent 3a8eafcc6b
commit 9cec9770be

View File

@ -40,7 +40,7 @@ else:
with open(settings_path) as settings_yaml: with open(settings_path) as settings_yaml:
settings = load(settings_yaml) settings = load(settings_yaml)
if settings.get('server', {}).get('debug'): if settings.get('general', {}).get('debug'):
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
else: else:
logging.basicConfig(level=logging.WARNING) logging.basicConfig(level=logging.WARNING)