From 861fc2e3c0811d99ede2e4ee717678ae36c9921a Mon Sep 17 00:00:00 2001 From: hatef palizgar Date: Mon, 14 Sep 2020 02:57:50 +0300 Subject: [PATCH 1/2] Fixes gh-23214 --- spring-boot-project/spring-boot-dependencies/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-dependencies/build.gradle b/spring-boot-project/spring-boot-dependencies/build.gradle index 259d9881b8ee..177fc193f90a 100644 --- a/spring-boot-project/spring-boot-dependencies/build.gradle +++ b/spring-boot-project/spring-boot-dependencies/build.gradle @@ -1344,7 +1344,7 @@ bom { ] } } - library("RSocket", "1.1.0-SNAPSHOT") { + library("RSocket", "1.1.0-M2") { group("io.rsocket") { imports = [ "rsocket-bom" From 4f6683d08290bbdd3983c893a921e0edd7b28e22 Mon Sep 17 00:00:00 2001 From: Hatef Palizgar Date: Sat, 23 Jan 2021 19:40:35 +0200 Subject: [PATCH 2/2] Document logging.register-shutdown-hook property --- .../boot/context/logging/LoggingApplicationListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java index 27b1a5fea2b1..133910a36210 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java @@ -115,6 +115,10 @@ public class LoggingApplicationListener implements GenericApplicationListener { /** * The name of the Spring property that controls the registration of a shutdown hook * to shut down the logging system when the JVM exits. + * This is set to {@code false} by default to avoid shutting down of the logging system on application stops + * or during the closure of the application context. + * Setting this property to {@code true} flushes the loggers and terminates the log appenders gracefully + * once the application context stops. * @see LoggingSystem#getShutdownHandler */ public static final String REGISTER_SHUTDOWN_HOOK_PROPERTY = "logging.register-shutdown-hook";