Fix debug logging

Fix an issue where debug logging never occurred because it was guarded
incorrectly using isWarnEnabled().

Fixes gh-1780
This commit is contained in:
Phillip Webb 2014-11-05 08:17:11 -08:00
parent e1894c1c4b
commit 57a4cb1aee
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public abstract class AbstractEmbeddedServletContainerFactory extends
file = file != null ? file : getExplodedWarFileDocumentRoot();
// Or maybe there is a document root in a well-known location
file = file != null ? file : getCommonDocumentRoot();
if (file == null && this.logger.isWarnEnabled()) {
if (file == null && this.logger.isDebugEnabled()) {
this.logger.debug("None of the document roots "
+ Arrays.asList(COMMON_DOC_ROOTS)
+ " point to a directory and will be ignored.");