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:
1
spring-boot-samples/spring-boot-sample-tomcat-jsp/.gitignore
vendored
Normal file
1
spring-boot-samples/spring-boot-sample-tomcat-jsp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target/
|
||||
1
spring-boot-samples/spring-boot-sample-tomcat7-jsp/.gitignore
vendored
Normal file
1
spring-boot-samples/spring-boot-sample-tomcat7-jsp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target/
|
||||
1
spring-boot-samples/spring-boot-sample-traditional/.gitignore
vendored
Normal file
1
spring-boot-samples/spring-boot-sample-traditional/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target/
|
||||
1
spring-boot-samples/spring-boot-sample-web-jsp/.gitignore
vendored
Normal file
1
spring-boot-samples/spring-boot-sample-web-jsp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target/
|
||||
@@ -168,6 +168,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
|
||||
@Override
|
||||
protected void reinitialize(LoggingInitializationContext initializationContext) {
|
||||
getLoggerContext().reset();
|
||||
getLoggerContext().getStatusManager().clear();
|
||||
loadConfiguration(initializationContext, getSelfInitializationConfig(), null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user