Clear logback status list on reset

Update LogbackLoggingSystem to clear logback status messages on reset.
This prevents shutdown errors from preventing subsequent startup.

Fixes gh-3472
This commit is contained in:
Phillip Webb 2015-07-13 13:20:23 -07:00
parent db50fb8704
commit 73be2c056f
5 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
/target/

View File

@ -0,0 +1 @@
/target/

View File

@ -0,0 +1 @@
/target/

View File

@ -0,0 +1 @@
/target/

View File

@ -168,6 +168,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
@Override
protected void reinitialize(LoggingInitializationContext initializationContext) {
getLoggerContext().reset();
getLoggerContext().getStatusManager().clear();
loadConfiguration(initializationContext, getSelfInitializationConfig(), null);
}