| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| data | ||
| prisma | ||
| sql | ||
| src | ||
| tests | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .swcrc | ||
| Dockerfile | ||
| jest.config.cjs | ||
| nest-cli.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.typecheck.json |
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 |
|---|---|---|
| .. | ||
| data | Loading commit data... | |
| prisma | Loading commit data... | |
| sql | Loading commit data... | |
| src | Loading commit data... | |
| tests | Loading commit data... | |
| .dockerignore | Loading commit data... | |
| .env.example | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .swcrc | Loading commit data... | |
| Dockerfile | Loading commit data... | |
| jest.config.cjs | Loading commit data... | |
| nest-cli.json | Loading commit data... | |
| package.json | Loading commit data... | |
| tsconfig.build.json | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| tsconfig.typecheck.json | Loading commit data... |