Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sharding and encoding #636

Merged
merged 3 commits into from
Jun 26, 2024
Merged

fix sharding and encoding #636

merged 3 commits into from
Jun 26, 2024

Conversation

SAKURA-CAT
Copy link
Contributor

@SAKURA-CAT SAKURA-CAT commented Jun 25, 2024

Description

解决了两个问题:

  • 修复日志文件分片,新增加一个freezegun工具用于测试时的时间冻结
  • 终端标准输出流编码问题,如果系统为gbk编码,输出类似emoji符号时将会报错,但此问题无法有效复现,正确的处理应该是用户设置LANG=utf-8环境变量,现在的处理是增加UnicodeEncodeError捕获,如果出错就pass

如果有比较详细的错误描述和复现流程会更好,但目前没有

@SAKURA-CAT SAKURA-CAT added the 🐛 bug Something isn't working label Jun 25, 2024
@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin June 25, 2024 04:41
@SAKURA-CAT SAKURA-CAT self-assigned this Jun 25, 2024
@SAKURA-CAT SAKURA-CAT merged commit e6ffaa5 into main Jun 26, 2024
@SAKURA-CAT SAKURA-CAT deleted the bugfix/encoding branch June 26, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants