Skip to content

Commit 4317115

Browse files
committed
refactor: improve logging in logger interceptor
1 parent 1158561 commit 4317115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger/logging.interceptor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class LoggingInterceptor implements NestInterceptor {
1111
intercept(context: ExecutionContext, next: CallHandler): Observable<void> {
1212
const req = context.switchToHttp().getRequest<Request>();
1313

14-
// @ts-ignore
14+
//@ts-expect-error: userEntity is modified in authGuard
1515
const userId = req?.userEntity?.id;
1616

1717
const commonMessage = `${req.method} "${req.originalUrl}" (IP address: ${req.ip}, requestUserId: ${userId})`;

0 commit comments

Comments
 (0)