Set wagtail log level to warning

This commit is contained in:
Oleg Lavrovsky 2017-04-26 15:44:04 +02:00
parent 212ec6394c
commit 9e32a63db6
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ LOGGING = {
},
'wagtail': {
'handlers': [],
'level': 'INFO',
'level': 'WARNING',
'propagate': False,
'formatter': 'verbose',
},
@ -211,7 +211,7 @@ if 'LOG_DIR' in env:
# Wagtail log
LOGGING['handlers']['wagtail_file'] = {
'level': 'INFO',
'level': 'WARNING',
'class': 'cloghandler.ConcurrentRotatingFileHandler',
'filename': os.path.join(env['LOG_DIR'], 'wagtail.log'),
'maxBytes': 5242880, # 5MB