1
0

feat: 运行时日志系统,Pino + pino-pretty + pino-roll,console/file 双输出,敏感信息 redaction

This commit is contained in:
2026-05-21 12:21:59 +08:00
parent 0d709c7681
commit 007d74934d
26 changed files with 1713 additions and 114 deletions

View File

@@ -143,14 +143,8 @@ describe("mapCheckResult", () => {
});
test("损坏 observation JSON 返回 null observation", () => {
const originalWarn = console.warn;
console.warn = () => undefined;
try {
const result = mapCheckResult(makeRow({ observation: "{invalid json" }), "http");
expect(result.detail).toBeNull();
expect(result.observation).toBeNull();
} finally {
console.warn = originalWarn;
}
const result = mapCheckResult(makeRow({ observation: "{invalid json" }), "http");
expect(result.detail).toBeNull();
expect(result.observation).toBeNull();
});
});