From 549c9e5076672768e5e786bcc8e70f0ae1dc497b Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 21 Dec 2022 16:54:04 +0200 Subject: [PATCH 1/2] Fix typo in LocalDevToolsAutoConfiguration logging See gh-33569 --- .../devtools/autoconfigure/LocalDevToolsAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java index d0809e76f8..6b28ae4107 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java @@ -211,7 +211,7 @@ public class LocalDevToolsAutoConfiguration { public void onApplicationEvent(ClassPathChangedEvent event) { if (event.isRestartRequired()) { logger.info(LogMessage.format("Restarting due to %s", event.overview())); - logger.debug(LogMessage.of(() -> "Change set: %s" + event.getChangeSet())); + logger.debug(LogMessage.of(() -> "Change set: " + event.getChangeSet())); Restarter.getInstance().restart(new FileWatchingFailureHandler(this.fileSystemWatcherFactory)); } } From 42aa661e6923979fa2e5eaadf7b18e4ea1959c56 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 21 Dec 2022 22:34:26 -0800 Subject: [PATCH 2/2] Polish 'Fix typo in LocalDevToolsAutoConfiguration logging' See gh-33569 --- .../devtools/autoconfigure/LocalDevToolsAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java index 6b28ae4107..75cf2c804e 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java @@ -211,7 +211,7 @@ public class LocalDevToolsAutoConfiguration { public void onApplicationEvent(ClassPathChangedEvent event) { if (event.isRestartRequired()) { logger.info(LogMessage.format("Restarting due to %s", event.overview())); - logger.debug(LogMessage.of(() -> "Change set: " + event.getChangeSet())); + logger.debug(LogMessage.format("Change set: %s", event.getChangeSet())); Restarter.getInstance().restart(new FileWatchingFailureHandler(this.fileSystemWatcherFactory)); } }