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/ .idea/
*.db *.db
.DS_Store .DS_Store
__pycache__ **/migrations/*.py
**/migrations
!**/migrations/__init__.py !**/migrations/__init__.py
*.pyc *.pyc
conf/ conf/
!conf/env.example.py !conf/env.example.py
db.sqlite3 db.sqlite3
media/ media/
__pypackages__/

View File

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