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
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:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user