mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:13:21 +08:00
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:
parent
db50fb8704
commit
73be2c056f
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user