Skip to content

Commit

Permalink
Add exception stack trace to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Dec 13, 2024
1 parent 001a1b7 commit d5bf7b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</pluginRepositories>

<properties>
<revision>2.3.0-SNAPSHOT</revision>
<revision>2.3.1-SNAPSHOT</revision>
<openmrsPlatformVersion>2.0.5</openmrsPlatformVersion>
<javaCompilerVersion>1.8</javaCompilerVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit d5bf7b9

Please sign in to comment.