diff --git a/src/server/trpc/routers/feed/integration.ts b/src/server/trpc/routers/feed/integration.ts index 3df0f1d..29f96a1 100644 --- a/src/server/trpc/routers/feed/integration.ts +++ b/src/server/trpc/routers/feed/integration.ts @@ -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)}`); +}