diff --git a/teamapps-ux/src/main/java/org/teamapps/ux/session/SessionContext.java b/teamapps-ux/src/main/java/org/teamapps/ux/session/SessionContext.java index cf8c5cace..fb4efd079 100644 --- a/teamapps-ux/src/main/java/org/teamapps/ux/session/SessionContext.java +++ b/teamapps-ux/src/main/java/org/teamapps/ux/session/SessionContext.java @@ -510,7 +510,11 @@ public CompletableFuture runWithContext(Callable callable, boolean for skipAutoUpdateNavigationHistoryStateOnce = false; return ((R) resultHolder[0]); } catch (Throwable t) { - LOGGER.error("Exception while executing within session context", t); + try { + LOGGER.error("Exception while executing within session context", t); + } catch (Throwable t2) { + LOGGER.error("Exception while executing within session context. WAS NOT ABLE TO LOG THE EXCEPTION of type {}!", t.getClass()); + } this.destroy(UiSessionClosingReason.SERVER_SIDE_ERROR); throw t; } finally {