From 4a726dd2d1d015ad03340d9c726a31c2b0ee831b Mon Sep 17 00:00:00 2001 From: TynerGjs <132295567+TynerGjs@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:36:21 -0400 Subject: [PATCH] Resolve 5790 Prefix a unit test log for hibernate exception in HapiFhirHibernateJpaDialect (#5791) * prefixed the log message with "Unit test: " * resolved review comments --- .../ca/uhn/fhir/jpa/config/HapiFhirHibernateJpaDialect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/HapiFhirHibernateJpaDialect.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/HapiFhirHibernateJpaDialect.java index 6e820303187..b76f2113af0 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/HapiFhirHibernateJpaDialect.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/HapiFhirHibernateJpaDialect.java @@ -74,7 +74,7 @@ public class HapiFhirHibernateJpaDialect extends HibernateJpaDialect { } if (HapiSystemProperties.isUnitTestModeEnabled()) { - ourLog.error("Hibernate exception", theException); + ourLog.error("Unit test mode: Hibernate exception", theException); } if (theException instanceof ConstraintViolationException) {