From 3380643ef2d4b4bbc7d9488cb950d0a465dd7c09 Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 21 Jul 2024 12:12:00 +0900 Subject: [PATCH] chore (backend): tweak slow api call threshold --- packages/backend/src/server/api/call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/call.ts b/packages/backend/src/server/api/call.ts index 2309e3665c..80be763b13 100644 --- a/packages/backend/src/server/api/call.ts +++ b/packages/backend/src/server/api/call.ts @@ -202,7 +202,7 @@ export default async ( .finally(() => { const after = performance.now(); const time = after - before; - if (time > 1000) { + if (time > 2000) { apiLogger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`); } });