Skip to content

Commit

Permalink
Remove IP address from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorreem committed Dec 5, 2024
1 parent a7bfb12 commit f075c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger/logging.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down

0 comments on commit f075c87

Please sign in to comment.