Skip to content

修复:补充statistics.py缺失的logging模块导入#121

Open
Kailigithub wants to merge 1 commit into
datawhalechina:mainfrom
Kailigithub:fix/statistics-missing-logger-import
Open

修复:补充statistics.py缺失的logging模块导入#121
Kailigithub wants to merge 1 commit into
datawhalechina:mainfrom
Kailigithub:fix/statistics-missing-logger-import

Conversation

@Kailigithub

Copy link
Copy Markdown
Collaborator

修复内容

补充 tm-backend/app/routers/statistics.py 中缺失的 logging 模块导入。

read_user_file 函数中使用了 logger.warning(),但文件头部未导入 logging 模块,导致运行时会出现 NameError: name 'logger' is not defined

修复文件

  • tm-backend/app/routers/statistics.py:添加 import logginglogger = logging.getLogger(__name__)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant