add logging

prod
Laurent 3 years ago
parent 0d160d3aa6
commit c72a702a27
  1. 18
      padel/settings.py

@ -71,6 +71,24 @@ TEMPLATES = [
WSGI_APPLICATION = 'padel.wsgi.application' WSGI_APPLICATION = 'padel.wsgi.application'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': '/tmp/debug.log',
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
}
# Database # Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases # https://docs.djangoproject.com/en/4.1/ref/settings/#databases

Loading…
Cancel
Save