fix: use stdout logging for Docker #no_lint #no_test
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Has been skipped
CI/CD Pipeline / Run Tests (push) Has been skipped
CI/CD Pipeline / Build & Push Images (push) Successful in 2m3s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Successful in 13s

Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
2026-02-10 12:31:38 +01:00
parent 14b9b8d4ba
commit 5a1c2ac944

View File

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