server/facade: disable elasticsearch logs
Errors are covered by new safety mechanisms in image hash.
This commit is contained in:
parent
aa1faa3ccb
commit
ec9c70ba68
|
@ -101,6 +101,7 @@ def create_app():
|
||||||
''' Create a WSGI compatible App object. '''
|
''' Create a WSGI compatible App object. '''
|
||||||
validate_config()
|
validate_config()
|
||||||
coloredlogs.install(fmt='[%(asctime)-15s] %(name)s %(message)s')
|
coloredlogs.install(fmt='[%(asctime)-15s] %(name)s %(message)s')
|
||||||
|
logging.getLogger('elasticsearch').disabled = True
|
||||||
if config.config['debug']:
|
if config.config['debug']:
|
||||||
logging.getLogger('szurubooru').setLevel(logging.INFO)
|
logging.getLogger('szurubooru').setLevel(logging.INFO)
|
||||||
if config.config['show_sql']:
|
if config.config['show_sql']:
|
||||||
|
|
Loading…
Reference in New Issue