From f075c8740cceda5d0d90ddbca1c5855fe80dc0c7 Mon Sep 17 00:00:00 2001 From: Ellie Re'em Date: Thu, 5 Dec 2024 12:22:22 +0000 Subject: [PATCH] Remove IP address from logs --- src/logger/logging.interceptor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger/logging.interceptor.ts b/src/logger/logging.interceptor.ts index 3a0b890e..4ec6e563 100644 --- a/src/logger/logging.interceptor.ts +++ b/src/logger/logging.interceptor.ts @@ -14,7 +14,7 @@ export class LoggingInterceptor implements NestInterceptor { //@ts-expect-error: userEntity is modified in authGuard const userId = req?.userEntity?.id; - const commonMessage = `${req.method} "${req.originalUrl}" (IP address: ${req.ip}, requestUserId: ${userId})`; + const commonMessage = `${req.method} "${req.originalUrl}" (requestUserId: ${userId})`; this.logger.log(`Started ${commonMessage}`);