diff --git a/packages/backend/src/server/api/ApiCallService.ts b/packages/backend/src/server/api/ApiCallService.ts index 9d45a49c09..68f43c7dfc 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)`); - } }); }