Skip to content

Commit

Permalink
Make sure we get exception logs even if the exception was not able to…
Browse files Browse the repository at this point in the history
… print its own stack trace (yes, that happened...)
  • Loading branch information
yamass committed Oct 7, 2024
1 parent 310b475 commit 2e9e0fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,11 @@ public <R> CompletableFuture<R> runWithContext(Callable<R> 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 {
Expand Down

0 comments on commit 2e9e0fe

Please sign in to comment.