refactor: add more log for tencent cloud alarm

This commit is contained in:
moonrailgun 2024-08-06 19:37:56 +08:00
parent bb76c8e895
commit ad18666851

View File

@ -167,7 +167,12 @@ export const feedIntegrationRouter = router({
const res = tencentCloudAlarmSchema.safeParse(data); const res = tencentCloudAlarmSchema.safeParse(data);
if (!res.success) { 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)); throw new Error('Input not valid,' + JSON.stringify(res.error));
} }