Turn down gunicorn logging, reorder request logging

This commit is contained in:
Tanner Collin 2021-11-29 02:42:17 +00:00
parent af3f4ac614
commit e501427f38
2 changed files with 2 additions and 2 deletions

View File

@ -24,5 +24,5 @@ class LoggingThrottle(throttling.BaseThrottle):
else:
data = None
logging.info('Request - User: %s | %s %s | Data: %s', user, method, path, data)
logging.info('%s %s | User: %s | Data: %s', method, path, user, data)
return True

View File

@ -239,7 +239,7 @@ LOGGING = {
'loggers': {
'gunicorn': {
'handlers': ['console'],
'level': 'DEBUG',
'level': 'DEBUG' if DEBUG else 'INFO',
'propagate': False,
},
'': {