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
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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -19,7 +19,8 @@ venv/
|
|||||||
*.sqlite3
|
*.sqlite3
|
||||||
media/
|
media/
|
||||||
staticfiles/
|
staticfiles/
|
||||||
logs/
|
logs/*
|
||||||
|
!logs/.gitkeep
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|||||||
0
logs/.gitkeep
Normal file
0
logs/.gitkeep
Normal 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",
|
||||||
|
|||||||
Reference in New Issue
Block a user