Skip to content

Commit

Permalink
MAT-6393: Remove duplicate logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcphillips committed May 22, 2024
1 parent 6692e51 commit b288b8f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public List<CqlCode> validateCodes(List<CqlCode> cqlCodes, UmlsUser umlsUser, St
String codeId = cqlCode.getCodeId();
if (codeId == null || TerminologyServiceUtil.sanitizeInput(codeId).isBlank()) {
log.info("Code id is not available for code {}", cqlCode.getName());
log.debug("Code id is not available for code {}", cqlCode.getName());
cqlCode.setValid(false);
cqlCode.setErrorMessage("Code Id is required");
} else if (!StringUtils.isBlank(codeSystemVersion)) {
Expand All @@ -144,9 +143,6 @@ public List<CqlCode> validateCodes(List<CqlCode> cqlCodes, UmlsUser umlsUser, St
}
} else {
// unidentified code system.
log.debug(
"No associated Code system found in code system entry json for {}",
cqlCode.getCodeSystem().getOid());
log.info(
"No associated Code system found in code system entry json for {}",
cqlCode.getCodeSystem().getOid());
Expand All @@ -155,7 +151,6 @@ public List<CqlCode> validateCodes(List<CqlCode> cqlCodes, UmlsUser umlsUser, St
}
} else {
// if oid/url is not provided in cql, then the code system is considered invalid.
log.debug("CodeSystem {} does not contain any URL", cqlCode.getCodeSystem().getName());
log.info("CodeSystem {} does not contain any URL", cqlCode.getCodeSystem().getName());
cqlCode.getCodeSystem().setValid(false);
cqlCode.getCodeSystem().setErrorMessage("Code system URL is required");
Expand Down

0 comments on commit b288b8f

Please sign in to comment.