Skip to content

[Refactoring]: 整理 MO 的日志,让 error code 能用起来 #23604

@volgariver6

Description

@volgariver6

Why do you want to refactor this code?

整理 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

Metadata

Metadata

Assignees

Labels

ai-mediumModerate reasoning or multi-step tasks; some domain knowledge.kind/refactorCode refactorpriority/p0Critical feature that should be implemented in this version

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions