From f94196cc6d1d7c3fd2c58ce55a65fd5b63be5273 Mon Sep 17 00:00:00 2001 From: Xen0Xys Date: Thu, 23 May 2024 16:36:36 +0200 Subject: [PATCH] :fire: Re-introduce logging for all routes --- src/common/middlewares/logger.middleware.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/middlewares/logger.middleware.ts b/src/common/middlewares/logger.middleware.ts index 6ac426a..2d515a9 100644 --- a/src/common/middlewares/logger.middleware.ts +++ b/src/common/middlewares/logger.middleware.ts @@ -21,8 +21,6 @@ export class LoggerMiddleware implements NestMiddleware{ const nRes = res as any; const resSize = nRes._contentLength || "0"; const intResSize = parseInt(resSize); - if(!path.includes("/api/v")) // TODO: Fix that - return; LoggerMiddleware.logger.log(`${httpOrHttps} ${method} ${path} ${statusCode} ${duration}ms ${intResSize}`); LoggerMiddleware.requestTimeLogger(path, method, duration); }catch(e){