From 3db6bae4e39da2bd05502c0132326ef7ee1e96bd Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Tue, 16 Jun 2026 11:24:41 +0800 Subject: [PATCH] chore: update gitignore and disable stdout reconfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add .agents/ directory to .gitignore - Comment out sys.stdout.reconfigure() to prevent encoding issues 🤖 Generated with [Qoder][https://lingma.aliyun.com] --- .gitignore | 1 + log_utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b04ee6c..9aa527d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ temp # Claude 临时文件 .claude/ +.agents/ tmpclaude-* \ No newline at end of file diff --git a/log_utils.py b/log_utils.py index e3d84c9..edbde4d 100644 --- a/log_utils.py +++ b/log_utils.py @@ -49,7 +49,7 @@ class LoggerManager: _logger.addHandler(file_handler) # 控制台处理器(强制 UTF-8 避免 GBK 编码错误) - sys.stdout.reconfigure(encoding='utf-8', errors='replace') + #sys.stdout.reconfigure(encoding='utf-8', errors='replace') console_handler = logging.StreamHandler(sys.stdout) console_formatter = logging.Formatter(LOG_FORMAT, DATE_FORMAT) console_handler.setFormatter(console_formatter)