| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cli | ||
| common | ||
| config | ||
| modules | ||
| openapi | ||
| prisma | ||
| queues | ||
| redis | ||
| types | ||
| app.module.ts | ||
| health.controller.ts | ||
| instrument.ts | ||
| main.ts |
ZodSerializationException 继承的是 InternalServerErrorException,⛔ 不是 ZodValidationException —— 名字像,血缘不同。于是它掉进 filter 的通用 HttpException 分支:code=90000、HTTP 保持 200、**一条日志都不写** (那条分支不打日志,"5xx 兜底日志"也因为 status 是 200 而不触发)。 实测代价:workload 接口挂了,接口只回「Internal Server Error」, 服务日志从头到尾干干净净,查了很久才定位到是响应少了一个字段。 单独拦下并排在通用分支之前,打印 zod issues(哪个字段/期望什么/收到什么), 非生产环境连 details 一起回;单独打 Sentry tag(这是 PAC 自己的 bug)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| cli | Loading commit data... | |
| common | Loading commit data... | |
| config | Loading commit data... | |
| modules | Loading commit data... | |
| openapi | Loading commit data... | |
| prisma | Loading commit data... | |
| queues | Loading commit data... | |
| redis | Loading commit data... | |
| types | Loading commit data... | |
| app.module.ts | Loading commit data... | |
| health.controller.ts | Loading commit data... | |
| instrument.ts | Loading commit data... | |
| main.ts | Loading commit data... |