Skip to content

Commit

Permalink
Fix exception printing Stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed Dec 2, 2024
1 parent f2bbc90 commit 8175d57
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
import org.hl7.cql.model.*;
import org.hl7.elm.r1.*;
import org.hl7.elm_modelinfo.r1.ModelInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Cql2ElmVisitor extends CqlPreprocessorElmCommonVisitor {
private static final Logger log = LoggerFactory.getLogger(Cql2ElmVisitor.class);
private final SystemMethodResolver systemMethodResolver;

private final Set<String> definedExpressionDefinitions = new HashSet<>();
Expand Down Expand Up @@ -4449,7 +4452,7 @@ public FunctionDef compileFunctionDefinition(cqlParser.FunctionDefinitionContext
try {
libraryBuilder.popIdentifier();
} catch (Exception e) {
e.printStackTrace();
log.warn("error popping identifier", e);
}
}
// Intentionally do _not_ pop the function name, it needs to remain in global scope!
Expand Down

0 comments on commit 8175d57

Please sign in to comment.