Skip to content

Commit f425fd5

Browse files
committed
refactor: change logging level for request headers in JwtDefaultGuard
1 parent 10baba3 commit f425fd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/guards/jwt-guards/def-jwt-guard.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export class JwtDefaultGuard extends AuthGuard('registeredUserJWT') {
88
if (info instanceof Error || err || !user) {
99
const response = context.switchToHttp().getResponse();
1010

11-
// TODO: remove later
12-
this.logger.log(`${JSON.stringify(context.switchToHttp().getRequest().headers)}`);
11+
this.logger.debug(`${JSON.stringify(context.switchToHttp().getRequest().headers)}`);
1312

1413
this.logger.error(
1514
`Incorrect SSL_CERT or JWT! Request dropped. URL: ${context.switchToHttp().getRequest().url}, IP: ${context.switchToHttp().getRequest().ip}`,

0 commit comments

Comments
 (0)