From 908d97dc1299726b448896ea99224c56abbd2b7a Mon Sep 17 00:00:00 2001 From: mcmcphillips Date: Wed, 22 May 2024 12:03:19 -0700 Subject: [PATCH] MAT-6393: Add more logs. --- .../java/gov/cms/madie/terminology/service/VsacService.java | 3 ++- .../terminology/webclient/TerminologyServiceWebClient.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/gov/cms/madie/terminology/service/VsacService.java b/src/main/java/gov/cms/madie/terminology/service/VsacService.java index 3d14b6d..8553037 100644 --- a/src/main/java/gov/cms/madie/terminology/service/VsacService.java +++ b/src/main/java/gov/cms/madie/terminology/service/VsacService.java @@ -219,6 +219,7 @@ public UmlsUser verifyUmlsAccess(String harpId) { } private VsacCode validateCodeAgainstVsac(String codePath, UmlsUser umlsUser) { + log.info("codedPath is {}", codePath); return terminologyWebClient.getCode(codePath, umlsUser.getApiKey()); } @@ -237,7 +238,7 @@ private String buildCodeSystemVersion(CqlCode cqlCode, CodeSystemEntry codeSyste String cqlCodeSystemVersion = TerminologyServiceUtil.sanitizeInput(cqlCode.getCodeSystem().getVersion()); if (CollectionUtils.isEmpty(codeSystemEntryVersion)) { - log.debug( + log.info( "CodeSystem {} does not have any known versions", cqlCode.getCodeSystem().getOid()); return cqlCodeSystemVersion; } else { diff --git a/src/main/java/gov/cms/madie/terminology/webclient/TerminologyServiceWebClient.java b/src/main/java/gov/cms/madie/terminology/webclient/TerminologyServiceWebClient.java index 352b4c9..5f77cbf 100644 --- a/src/main/java/gov/cms/madie/terminology/webclient/TerminologyServiceWebClient.java +++ b/src/main/java/gov/cms/madie/terminology/webclient/TerminologyServiceWebClient.java @@ -74,7 +74,7 @@ protected URI getValueSetURI( */ public VsacCode getCode(String codePath, String apiKey) { URI codeUri = TerminologyServiceUtil.buildRetrieveCodeUri(baseUrl, codePath); - log.debug("Retrieving vsacCode for codePath {}", codePath); + log.info("Retrieving vsacCode for codePath {}", codePath); return terminologyClient .get() .uri(codeUri) @@ -85,7 +85,7 @@ public VsacCode getCode(String codePath, String apiKey) { || clientResponse.statusCode().equals(HttpStatus.OK)) { return clientResponse.bodyToMono(VsacCode.class); } else { - log.debug("Received NON-OK response while retrieving codePath {}", codePath); + log.info("Received NON-OK response while retrieving codePath {}", codePath); return clientResponse.createException().flatMap(Mono::error); } })