perf(logger propagate): logger propagate & add migrations/__init__.py files to .gitignore

pull/53/head
Angelo 2022-04-26 15:03:35 +08:00
parent ae27aa2d0c
commit b02b673e1b
2 changed files with 4 additions and 2 deletions

4
backend/.gitignore vendored
View File

@ -88,11 +88,11 @@ ENV/
.idea/
*.db
.DS_Store
__pycache__
**/migrations
**/migrations/*.py
!**/migrations/__init__.py
*.pyc
conf/
!conf/env.example.py
db.sqlite3
media/
__pypackages__/

View File

@ -231,10 +231,12 @@ LOGGING = {
"django": {
"handlers": ["console", "error", "file"],
"level": "INFO",
"propagate": False,
},
"scripts": {
"handlers": ["console", "error", "file"],
"level": "INFO",
"propagate": False,
},
# 数据库相关日志
"django.db.backends": {