From 00aa46f2f5a7cfd2e34ce839dc1971ca9d4a2aef Mon Sep 17 00:00:00 2001 From: "Gregory P. Akins" Date: Thu, 18 Aug 2022 13:56:32 -0400 Subject: [PATCH] MAT-4521: Adding more debugging --- .../service/support/CqlExceptionErrorProcessor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/gov/cms/mat/cql_elm_translation/service/support/CqlExceptionErrorProcessor.java b/src/main/java/gov/cms/mat/cql_elm_translation/service/support/CqlExceptionErrorProcessor.java index d5d9a859..7367d5fd 100644 --- a/src/main/java/gov/cms/mat/cql_elm_translation/service/support/CqlExceptionErrorProcessor.java +++ b/src/main/java/gov/cms/mat/cql_elm_translation/service/support/CqlExceptionErrorProcessor.java @@ -70,10 +70,10 @@ private MatCqlConversionException createDto(CqlTranslatorException cqlException) private MatCqlConversionException buildMatError(CqlTranslatorException cqlTranslatorException) { MatCqlConversionException matCqlConversionException = new MatCqlConversionException(); matCqlConversionException.setErrorSeverity(cqlTranslatorException.getSeverity().name()); - + log.debug("buildMatError" + cqlTranslatorException.getMessage()); try { String payload = escape(cqlTranslatorException.getMessage()); - + if (StringUtils.contains(payload, "UsingProperties.getVersion")) { log.info("cqlTranslatorException: " + payload); String rawPayload = clean(payload); @@ -86,7 +86,8 @@ private MatCqlConversionException buildMatError(CqlTranslatorException cqlTransl matCqlConversionException.setMessage(payload); } catch (Exception e) { - log.debug("Error building MatError", e); + log.info("Error building MADiEError message", e.getMessage()); + log.debug("Error building MADiEError", e); matCqlConversionException.setMessage("Exception"); }