Skip to content

Commit 57a4cb1

Browse files
committed
Fix debug logging
Fix an issue where debug logging never occurred because it was guarded incorrectly using isWarnEnabled(). Fixes gh-1780
1 parent e1894c1 commit 57a4cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected final File getValidDocumentRoot() {
6666
file = file != null ? file : getExplodedWarFileDocumentRoot();
6767
// Or maybe there is a document root in a well-known location
6868
file = file != null ? file : getCommonDocumentRoot();
69-
if (file == null && this.logger.isWarnEnabled()) {
69+
if (file == null && this.logger.isDebugEnabled()) {
7070
this.logger.debug("None of the document roots "
7171
+ Arrays.asList(COMMON_DOC_ROOTS)
7272
+ " point to a directory and will be ignored.");

0 commit comments

Comments
 (0)