refactor: add more log for tencent cloud alarm
This commit is contained in:
parent
bb76c8e895
commit
ad18666851
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user