dev #9

Merged
avm merged 100 commits from dev into main 2026-03-17 16:06:44 +03:00
Showing only changes of commit 5a1c2ac944 - Show all commits

View File

@@ -64,7 +64,7 @@ CACHES = {
}
}
# Logging for production
# Logging for production (stdout for Docker)
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
@@ -75,36 +75,29 @@ LOGGING = {
},
},
"handlers": {
"file": {
"console": {
"level": "INFO",
"class": "logging.handlers.RotatingFileHandler",
"filename": "/app/logs/app.log",
"maxBytes": 1024 * 1024 * 15, # 15MB
"backupCount": 10,
"class": "logging.StreamHandler",
"formatter": "verbose",
},
"mail_admins": {
"level": "ERROR",
"class": "django.utils.log.AdminEmailHandler",
},
},
"root": {
"handlers": ["file"],
"handlers": ["console"],
"level": "INFO",
},
"loggers": {
"django": {
"handlers": ["file"],
"handlers": ["console"],
"level": "INFO",
"propagate": False,
},
"apps.data_processor": {
"handlers": ["file"],
"handlers": ["console"],
"level": "INFO",
"propagate": False,
},
"apps.scraping": {
"handlers": ["file"],
"handlers": ["console"],
"level": "INFO",
"propagate": False,
},