add error logging in production
This commit is contained in:
parent
4fc47030db
commit
d615da3a0f
|
@ -93,6 +93,21 @@ TEMPLATES = [
|
||||||
|
|
||||||
WSGI_APPLICATION = "spejstore.wsgi.application"
|
WSGI_APPLICATION = "spejstore.wsgi.application"
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
|
||||||
|
LOGGING = {
|
||||||
|
"version": 1,
|
||||||
|
"disable_existing_loggers": False,
|
||||||
|
"handlers": {
|
||||||
|
"console": {
|
||||||
|
"class": "logging.StreamHandler",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"handlers": ["console"],
|
||||||
|
"level": "INFO",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
|
||||||
|
|
Loading…
Reference in New Issue