This commit is contained in:
Phillip Webb
2023-08-13 18:18:48 -07:00
parent dc45532c94
commit 527b2f2cac
3 changed files with 28 additions and 30 deletions

View File

@@ -187,9 +187,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
}
IllegalStateException ex = new IllegalStateException(
String.format("Logback configuration error detected: %n%s", errors));
for (Throwable suppressedException : suppressedExceptions) {
ex.addSuppressed(suppressedException);
}
suppressedExceptions.forEach(ex::addSuppressed);
throw ex;
}