Commit d4b728c8 authored by sim's avatar sim

Fine tuning of logging in django backend

parent b4b83c05
......@@ -105,12 +105,23 @@ LOGGING = {
'level': LOG_LEVEL,
'propagate': True,
},
# All django loggers: https://docs.djangoproject.com/fr/1.11/topics/logging/#id3
'django.template': {
# Don't keep debug logs for template module to avoid annoying and
# useless noise, see:
# https://github.com/encode/django-rest-framework/issues/3982#issuecomment-325290221
'level': 'INFO' if LOG_LEVEL == 'DEBUG' else LOG_LEVEL,
},
'django.db.backends': {
'level': 'INFO',
},
'gargantext': {
'handlers': ['file'],
'level': LOG_LEVEL,
# Propagation to True means that this config applies to
# 'gargantext' logger and all 'gargantext.*'
'propagate': True,
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment