| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| alerting | ||
| decorators | ||
| errors | ||
| filters | ||
| guards | ||
| interceptors | ||
| canonical-json.ts | ||
| run-pool.ts | ||
| tenant-context.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 |
|---|---|---|
| .. | ||
| alerting | Loading commit data... | |
| decorators | Loading commit data... | |
| errors | Loading commit data... | |
| filters | Loading commit data... | |
| guards | Loading commit data... | |
| interceptors | Loading commit data... | |
| canonical-json.ts | Loading commit data... | |
| run-pool.ts | Loading commit data... | |
| tenant-context.ts | Loading commit data... |