Browse Source

Polish

See gh-21481
pull/21490/head
wonwoo 6 years ago committed by Andy Wilkinson
parent
commit
25723be26f
  1. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/GracefulShutdown.java
  2. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowWebServer.java

2
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/GracefulShutdown.java

@ -63,7 +63,7 @@ final class GracefulShutdown { @@ -63,7 +63,7 @@ final class GracefulShutdown {
callback.shutdownComplete(GracefulShutdownResult.IDLE);
}
catch (Exception ex) {
logger.info("Graceful shutdown aborted with one or more active requests");
logger.info("Graceful shutdown aborted with one or more requests still active");
callback.shutdownComplete(GracefulShutdownResult.REQUESTS_ACTIVE);
}
finally {

2
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowWebServer.java

@ -306,7 +306,7 @@ public class UndertowWebServer implements WebServer { @@ -306,7 +306,7 @@ public class UndertowWebServer implements WebServer {
callback.shutdownComplete(GracefulShutdownResult.IMMEDIATE);
return;
}
logger.info("Commencing graceful shutdown. Wait for active requests to complete");
logger.info("Commencing graceful shutdown. Waiting for active requests to complete");
this.gracefulShutdownCallback.set(callback);
this.gracefulShutdown.shutdown();
this.gracefulShutdown.addShutdownListener((success) -> notifyGracefulCallback(success));

Loading…
Cancel
Save