Skip to content

Commit

Permalink
把控制台的日志开关打开
Browse files Browse the repository at this point in the history
  • Loading branch information
deadwalks committed Sep 12, 2024
1 parent a0da006 commit 05e975d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/logger_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _setup_handlers(self):
console_formatter = PrettyConsoleFormatter('%(asctime)s - %(levelname)s - %(message)s')
console_handler.setFormatter(console_formatter)
# 先暂时关闭控制台的日志输出
# self.logger.addHandler(console_handler)
self.logger.addHandler(console_handler)
def set_log_file(self, log_file):
"""修改日志文件路径"""
self.log_file = log_file
Expand Down

0 comments on commit 05e975d

Please sign in to comment.