disable log in default settings, which will be overwritten in site config anyway

This commit is contained in:
Your Name 2023-09-16 15:53:48 -04:00 committed by Henri Dickson
parent 37872de538
commit 17e74dc280

View file

@ -172,31 +172,6 @@ if os.getenv("NEODB_SSL", "") != "":
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_SECONDS = 31536000
if not DEBUG:
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"simple": {
"format": "{levelname} {asctime} {name}:{lineno} {message}",
"style": "{",
},
},
"handlers": {
"file": {
"level": "INFO",
"class": "logging.FileHandler",
"filename": os.path.join(BASE_DIR, "log"),
"formatter": "simple",
},
},
"root": {
"handlers": ["file"],
"level": "INFO",
"propagate": True,
},
}
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/