Skip to content

Commit

Permalink
inline logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg3lopez committed Oct 24, 2024
1 parent 3ca73a5 commit 4eb0e20
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ private void processCoding(
IdentifierCode identifier = codingMap.get(originalCoding.getCode());

if (identifier == null) {
logUnmappedLocalCode(originalCoding, msh41Identifier, messageId);
logger.logWarning(
"Unmapped local code detected: '{}', from sender: '{}', message Id: '{}'",
originalCoding.getCode(),
msh41Identifier,
messageId);
return;
}

Expand All @@ -76,15 +80,6 @@ private String validateField(String field, String fieldName) {
return field;
}

private void logUnmappedLocalCode(Coding coding, String msh41Identifier, String messageId) {

logger.logWarning(
"Unmapped local code detected: '{}', from sender: '{}', message Id: '{}'",
coding.getCode(),
msh41Identifier,
messageId);
}

private Coding getMappedCoding(IdentifierCode identifierCode) {
var mappedCoding =
new Coding(
Expand Down

0 comments on commit 4eb0e20

Please sign in to comment.