Skip to content

Commit

Permalink
MAT-6393: Add more logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed May 22, 2024
1 parent b288b8f commit 908d97d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
})
Expand Down

0 comments on commit 908d97d

Please sign in to comment.