From ad186668515c40e4127108a689accacc5b782760 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 6 Aug 2024 19:37:56 +0800 Subject: [PATCH] refactor: add more log for tencent cloud alarm --- src/server/trpc/routers/feed/integration.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/server/trpc/routers/feed/integration.ts b/src/server/trpc/routers/feed/integration.ts index 0919141..54c45a8 100644 --- a/src/server/trpc/routers/feed/integration.ts +++ b/src/server/trpc/routers/feed/integration.ts @@ -167,7 +167,12 @@ export const feedIntegrationRouter = router({ const res = tencentCloudAlarmSchema.safeParse(data); if (!res.success) { - logger.error('[TencentCloudAlarm] input parse error:', res.error); + logger.error( + '[TencentCloudAlarm] input parse error:', + res.error, + ' | input:', + data + ); throw new Error('Input not valid,' + JSON.stringify(res.error)); }