diff --git a/spring-boot/src/main/java/org/springframework/boot/LoggedExceptionHandler.java b/spring-boot/src/main/java/org/springframework/boot/LoggedExceptionHandler.java index 82e5e8a5aca..b673b7abde2 100644 --- a/spring-boot/src/main/java/org/springframework/boot/LoggedExceptionHandler.java +++ b/spring-boot/src/main/java/org/springframework/boot/LoggedExceptionHandler.java @@ -44,8 +44,13 @@ class LoggedExceptionHandler implements UncaughtExceptionHandler { @Override public void uncaughtException(Thread thread, Throwable ex) { - if (!isRegistered(ex) && this.parent != null) { - this.parent.uncaughtException(thread, ex); + try { + if (!isRegistered(ex) && this.parent != null) { + this.parent.uncaughtException(thread, ex); + } + } + finally { + this.exceptions.clear(); } }