From 61e755af56f571167fa76a1b12d50ed935140c68 Mon Sep 17 00:00:00 2001 From: hannah-macdonald1 Date: Tue, 17 Dec 2024 21:26:37 -0700 Subject: [PATCH] log --- src/common/guards/auth/auth.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/guards/auth/auth.service.ts b/src/common/guards/auth/auth.service.ts index 3a8cf4b..d0a1e5d 100644 --- a/src/common/guards/auth/auth.service.ts +++ b/src/common/guards/auth/auth.service.ts @@ -60,7 +60,7 @@ export class AuthService { upstreamResult = await this.getAssignedIdirUpstream(id, recordType); await this.cacheManager.set(key, upstreamResult, this.cacheTime); } else { - this.logger.log(`Cache hit!`); + this.logger.log(`Cache hit! Result: ${upstreamResult}`); } if (upstreamResult !== idir) { return false; @@ -103,6 +103,8 @@ export class AuthService { this.configService.get(`upstreamAuth.${recordType}.endpoint`) + id; + this.logger.log({ url, params }); + let response; try { const token = @@ -114,6 +116,7 @@ export class AuthService { response = await firstValueFrom( this.httpService.get(url, { params, headers }), ); + this.logger.log({ data: response.data }); const idir = response.data[ this.configService.get(`upstreamAuth.${recordType}.idirField`)