From 4df9eb29423d4d141576d1db1f0a35179760967e Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sun, 21 Jan 2024 19:00:53 +0100 Subject: [PATCH] chore: Made it easier to track which IP Address got ratelimited --- packages/api/src/trpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/trpc.ts b/packages/api/src/trpc.ts index bf3dec20..cbaa42f3 100644 --- a/packages/api/src/trpc.ts +++ b/packages/api/src/trpc.ts @@ -139,7 +139,7 @@ const rateLimitMiddleware = t.middleware(async ({ ctx, path, next }) => { log.warn("Rate limit exceeded", { ip: identifier }); throw new TRPCError({ code: "INTERNAL_SERVER_ERROR", - message: "Rate limit exceeded", + message: "Rate limit exceeded on this IP: " + identifier, }); } return next();