feat : 代码梳理 移除所有敏感密钥 通过环境变量方式配置
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from app.core.config import LOGS_PATH
|
||||
from app.core.config import settings
|
||||
|
||||
LOGGER_CONFIG_DICT = {
|
||||
'version': 1,
|
||||
@@ -17,7 +17,7 @@ LOGGER_CONFIG_DICT = {
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'level': 'INFO',
|
||||
'formatter': 'simple',
|
||||
'filename': f'{LOGS_PATH}info.log',
|
||||
'filename': f'{settings.LOGS_PATH}info.log',
|
||||
'maxBytes': 10485760,
|
||||
'backupCount': 50,
|
||||
'encoding': 'utf8',
|
||||
@@ -26,7 +26,7 @@ LOGGER_CONFIG_DICT = {
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'level': 'ERROR',
|
||||
'formatter': 'simple',
|
||||
'filename': f'{LOGS_PATH}error.log',
|
||||
'filename': f'{settings.LOGS_PATH}error.log',
|
||||
'maxBytes': 10485760,
|
||||
'backupCount': 20,
|
||||
'encoding': 'utf8',
|
||||
@@ -35,7 +35,7 @@ LOGGER_CONFIG_DICT = {
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'level': 'DEBUG',
|
||||
'formatter': 'simple',
|
||||
'filename': f'{LOGS_PATH}debug.log',
|
||||
'filename': f'{settings.LOGS_PATH}debug.log',
|
||||
'maxBytes': 10485760,
|
||||
'backupCount': 50,
|
||||
'encoding': 'utf8',
|
||||
|
||||
Reference in New Issue
Block a user