fix: correct log path and add logs/.gitkeep #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 2m6s
CI/CD Pipeline / Deploy (prod) (push) Has been skipped
CI/CD Pipeline / Deploy (dev) (push) Successful in 11s

Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
2026-02-10 12:25:59 +01:00
parent e919ef60b3
commit 14b9b8d4ba
3 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@@ -19,7 +19,8 @@ venv/
*.sqlite3 *.sqlite3
media/ media/
staticfiles/ staticfiles/
logs/ logs/*
!logs/.gitkeep
# IDE # IDE
.vscode/ .vscode/

0
logs/.gitkeep Normal file
View File

View File

@@ -78,7 +78,7 @@ LOGGING = {
"file": { "file": {
"level": "INFO", "level": "INFO",
"class": "logging.handlers.RotatingFileHandler", "class": "logging.handlers.RotatingFileHandler",
"filename": "/var/log/django/app.log", "filename": "/app/logs/app.log",
"maxBytes": 1024 * 1024 * 15, # 15MB "maxBytes": 1024 * 1024 * 15, # 15MB
"backupCount": 10, "backupCount": 10,
"formatter": "verbose", "formatter": "verbose",