From 4c4af2ae84089c25276026335dea408ac54b84cb Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Jan 2023 17:38:02 +0900 Subject: [PATCH] clean up --- packages/backend/src/server/api/ApiCallService.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/backend/src/server/api/ApiCallService.ts b/packages/backend/src/server/api/ApiCallService.ts index 9d45a49c0..68f43c7df 100644 --- a/packages/backend/src/server/api/ApiCallService.ts +++ b/packages/backend/src/server/api/ApiCallService.ts @@ -290,7 +290,6 @@ export class ApiCallService implements OnApplicationShutdown { } // API invoking - const before = performance.now(); return await ep.exec(data, user, token, file, request.ip, request.headers).catch((err: Error) => { if (err instanceof ApiError) { throw err; @@ -313,12 +312,6 @@ export class ApiCallService implements OnApplicationShutdown { }, }); } - }).finally(() => { - const after = performance.now(); - const time = after - before; - if (time > 1000) { - this.logger.warn(`SLOW API CALL DETECTED: ${ep.name} (${time}ms)`); - } }); }