feat(settings): 添加 Celery 日志配置
在 settings.py 中追加 Celery 的日志文件路径和日志级别配置,便于后续日志管理和问题排查
This commit is contained in:
@@ -176,4 +176,8 @@ EMAIL_PORT = 25 # 或根据你的 SMTP 服务器设置
|
||||
|
||||
# Reports files configuration
|
||||
REPORTS_URL = '/reports/'
|
||||
REPORTS_ROOT = BASE_DIR / 'reports' # 可以修改为其他路径
|
||||
REPORTS_ROOT = BASE_DIR / 'reports' # 可以修改为其他路径
|
||||
|
||||
# Django settings.py 中追加 Celery 日志配置
|
||||
CELERY_LOG_FILE = "/var/log/celery/worker.log" # 你的指定日志路径
|
||||
CELERY_LOG_LEVEL = "INFO" # 日志级别
|
||||
Reference in New Issue
Block a user