feat: add unknown integration log
This commit is contained in:
parent
ae3f5fce2d
commit
d2afa54301
@ -143,6 +143,8 @@ export const feedIntegrationRouter = router({
|
||||
}
|
||||
}
|
||||
|
||||
logUnknownIntegration('github', input);
|
||||
|
||||
return 'Not supported yet';
|
||||
}),
|
||||
tencentCloudAlarm: publicProcedure
|
||||
@ -233,6 +235,8 @@ export const feedIntegrationRouter = router({
|
||||
return 'ok';
|
||||
}
|
||||
|
||||
logUnknownIntegration('tencentCloudAlarm', input);
|
||||
|
||||
return 'Not supported yet';
|
||||
}),
|
||||
sentry: publicProcedure
|
||||
@ -300,6 +304,8 @@ export const feedIntegrationRouter = router({
|
||||
return 'ok';
|
||||
}
|
||||
|
||||
logUnknownIntegration('sentry', input);
|
||||
|
||||
return 'Not supported yet';
|
||||
}),
|
||||
});
|
||||
@ -314,3 +320,7 @@ export function buildFeedPublicOpenapi(meta: OpenApiMetaInfo): OpenApiMeta {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
function logUnknownIntegration(source: string, input: any) {
|
||||
logger.info(`[Feed Unknown Integration] ${source}: ${JSON.stringify(input)}`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user