chore: update gitignore and disable stdout reconfiguration

- Add .agents/ directory to .gitignore
- Comment out sys.stdout.reconfigure() to prevent encoding issues

🤖 Generated with [Qoder][https://lingma.aliyun.com]
This commit is contained in:
Misaka_Company
2026-06-16 11:24:41 +08:00
parent dd27cbaf97
commit 3db6bae4e3
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -11,4 +11,5 @@ temp
# Claude 临时文件 # Claude 临时文件
.claude/ .claude/
.agents/
tmpclaude-* tmpclaude-*

View File

@@ -49,7 +49,7 @@ class LoggerManager:
_logger.addHandler(file_handler) _logger.addHandler(file_handler)
# 控制台处理器(强制 UTF-8 避免 GBK 编码错误) # 控制台处理器(强制 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_handler = logging.StreamHandler(sys.stdout)
console_formatter = logging.Formatter(LOG_FORMAT, DATE_FORMAT) console_formatter = logging.Formatter(LOG_FORMAT, DATE_FORMAT)
console_handler.setFormatter(console_formatter) console_handler.setFormatter(console_formatter)