diff --git a/api/src/main/java/org/openmrs/module/labintegration/api/hl7/handler/OruR01Handler.java b/api/src/main/java/org/openmrs/module/labintegration/api/hl7/handler/OruR01Handler.java index 7be3ff1..336b77e 100644 --- a/api/src/main/java/org/openmrs/module/labintegration/api/hl7/handler/OruR01Handler.java +++ b/api/src/main/java/org/openmrs/module/labintegration/api/hl7/handler/OruR01Handler.java @@ -195,7 +195,7 @@ private Message processOruR01(ORU_R01 message) throws HL7Exception, ApplicationE encounterChanged = true; } } catch (Exception e) { - LOGGER.error("Could not process and add Obs!\n" + e.getMessage()); + LOGGER.error("Could not process and add Obs!: {}", e, e); } } @@ -206,7 +206,7 @@ private Message processOruR01(ORU_R01 message) throws HL7Exception, ApplicationE encounter.setEncounterDatetime(encounter.getVisit().getStartDatetime()); Context.getEncounterService().saveEncounter(encounter); } catch (Exception e) { - LOGGER.error("Could not save encounter!"); + LOGGER.error("Could not save encounter!", e); } } } diff --git a/pom.xml b/pom.xml index f61f3cc..2db8011 100644 --- a/pom.xml +++ b/pom.xml @@ -71,7 +71,7 @@ - 2.3.0-SNAPSHOT + 2.3.1-SNAPSHOT 2.0.5 1.8 UTF-8