From 05ea991d6220069f089a190a86f0f3105c26c049 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 19 Oct 2021 12:25:11 +0100 Subject: [PATCH] Removing locations logging in ResourceHttpRequestHandler See gh-27575 --- .../web/reactive/resource/ResourceWebHandler.java | 6 ------ .../web/servlet/resource/ResourceHttpRequestHandler.java | 6 ------ 2 files changed, 12 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java b/spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java index 75ac8ddd32..c2ba1b234b 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java @@ -336,12 +336,6 @@ public class ResourceWebHandler implements WebHandler, InitializingBean { this.locationsToUse.clear(); this.locationsToUse.addAll(result); - - if (logger.isInfoEnabled()) { - logger.info(!this.locationsToUse.isEmpty() ? - "Locations in use: " + locationToString(this.locationsToUse) : - "0 locations in use."); - } } /** diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java index 7456f37f03..22f06ccf58 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java @@ -467,12 +467,6 @@ public class ResourceHttpRequestHandler extends WebContentGenerator this.locationsToUse.clear(); this.locationsToUse.addAll(result); - - if (logger.isInfoEnabled()) { - logger.info(!this.locationsToUse.isEmpty() ? - "Locations in use: " + locationToString(this.locationsToUse) : - "0 locations in use."); - } } /**