diff --git a/apps/backend/src/middleware/request-logger-middleware.ts b/apps/backend/src/middleware/request-logger-middleware.ts index 514be733..04e3abe6 100644 --- a/apps/backend/src/middleware/request-logger-middleware.ts +++ b/apps/backend/src/middleware/request-logger-middleware.ts @@ -33,11 +33,13 @@ export class RequestLoggerMiddleware implements NestMiddleware { ? responseBody : JSON.stringify(responseBody); - const ignoreResponse = [ - "/v1/stop/all", - "/v1/platform/", - "/status", - ].some((item) => path.startsWith(item)); + const ignoreResponse = ["/v1/stop/all", "/v1/platform/"].some( + (item) => path.startsWith(item), + ); + + if (path.startsWith("/status")) { + return; + } try { // Log the request details to the database