Skip to content

Commit

Permalink
Fix log level in PathMatchingResourcePatternResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOICORE authored and snicoll committed Nov 26, 2024
1 parent 8c0ac8e commit 41421d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,8 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
}

if (!Files.exists(rootPath)) {
if (logger.isInfoEnabled()) {
logger.info("Skipping search for files matching pattern [%s]: directory [%s] does not exist"
if (logger.isDebugEnabled()) {
logger.debug("Skipping search for files matching pattern [%s]: directory [%s] does not exist"
.formatted(subPattern, rootPath.toAbsolutePath()));
}
return result;
Expand Down

0 comments on commit 41421d1

Please sign in to comment.