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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,4 +11,5 @@ temp
|
|||||||
|
|
||||||
# Claude 临时文件
|
# Claude 临时文件
|
||||||
.claude/
|
.claude/
|
||||||
|
.agents/
|
||||||
tmpclaude-*
|
tmpclaude-*
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user