You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/10/01 13:30:00 UTC
[causeway] branch CAUSEWAY-3035 created (now 39e6ed6e80)
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a change to branch CAUSEWAY-3035
in repository https://gitbox.apache.org/repos/asf/causeway.git
at 39e6ed6e80 CAUSEWAY-3035: adds stacktrace to log
This branch includes the following new commits:
new 39e6ed6e80 CAUSEWAY-3035: adds stacktrace to log
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[causeway] 01/01: CAUSEWAY-3035: adds stacktrace to log
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch CAUSEWAY-3035
in repository https://gitbox.apache.org/repos/asf/causeway.git
commit 39e6ed6e803e2cdccb09993dc29a67406e1226e2
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sun Oct 1 14:29:42 2023 +0100
CAUSEWAY-3035: adds stacktrace to log
---
.../apache/causeway/core/interaction/session/CausewayInteraction.java | 2 +-
.../jpa/integration/services/JpaSupportServiceUsingSpring.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/interaction/src/main/java/org/apache/causeway/core/interaction/session/CausewayInteraction.java b/core/interaction/src/main/java/org/apache/causeway/core/interaction/session/CausewayInteraction.java
index a3cb817071..8fd2426166 100644
--- a/core/interaction/src/main/java/org/apache/causeway/core/interaction/session/CausewayInteraction.java
+++ b/core/interaction/src/main/java/org/apache/causeway/core/interaction/session/CausewayInteraction.java
@@ -142,7 +142,7 @@ implements InteractionInternal {
// we rather print all of them, no matter whether recognized or not later on
// examples are IllegalArgument- or NullPointer- exceptions being swallowed when using the
// WrapperFactory utilizing async calls
- log.error("failed to execute an interaction", _Exceptions.getRootCause(ex));
+ log.error("failed to execute an interaction", _Exceptions.getRootCause(ex).orElse(null));
// just because an exception has thrown, does not mean it is that significant;
// it could be that it is recognized by an ExceptionRecognizer and is not severe
diff --git a/persistence/jpa/integration/src/main/java/org/apache/causeway/persistence/jpa/integration/services/JpaSupportServiceUsingSpring.java b/persistence/jpa/integration/src/main/java/org/apache/causeway/persistence/jpa/integration/services/JpaSupportServiceUsingSpring.java
index 7b7ab5dd84..5c1a7f3a34 100644
--- a/persistence/jpa/integration/src/main/java/org/apache/causeway/persistence/jpa/integration/services/JpaSupportServiceUsingSpring.java
+++ b/persistence/jpa/integration/src/main/java/org/apache/causeway/persistence/jpa/integration/services/JpaSupportServiceUsingSpring.java
@@ -43,7 +43,7 @@ public class JpaSupportServiceUsingSpring implements JpaSupportService {
val em = jpaContextSpring.getEntityManagerByManagedType(entityClass);
return Try.success(em);
} catch (Exception e) {
- log.error("failed to get an EntityManager for entity type %s", entityClass, e);
+ log.error(String.format("failed to get an EntityManager for entity type %s", entityClass), e);
return Try.failure(e);
}
}