matrixorigin / matrixorigin/matrixone
[Refactoring]: 整理 MO 的日志,让 error code 能用起来
Open
ai-medium
kind/refactor
priority/p0
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 311
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 768
Description
### Why do you want to refactor this code?
```Markdown
整理 MO 的日志逻辑和内容,至少把错误级别的日志统一管理起来,可以形成文档,包括 error code、原因和解决方案。目标是能够让客户自己通过关键字搜索,能快速定位到直接的问题,如果客户能解决就直接解决掉,解决不掉再由研发介入。
```
### Describe the solution you'd like
1. 至少整理错误级别的日志,通过关键字能过滤出 error code 和错误日志
2. 去掉不必要的日志信息
3. 建议去掉 InternalError 错误类型,否则错误信息非常混乱
4. 新的 PR 提交时,通过 statics 规则限制,不允许直接写 error message,只能通过 mo error code 方式加错误日志
### Describe alternatives you've considered
_No response_
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.