Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAT-6393: Add more logs. #82

Merged
merged 2 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading