Reduce logging level for non-critical warning

This commit is contained in:
Phillip Webb 2013-07-18 21:16:52 -07:00
parent b824d6309a
commit adbbc35944
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import org.springframework.util.StringUtils;
* Logs application information on startup. * Logs application information on startup.
* *
* @author Phillip Webb * @author Phillip Webb
* @author Dave Syer
*/ */
class StartupInfoLogger { class StartupInfoLogger {

View File

@ -313,7 +313,7 @@ public abstract class AbstractEmbeddedServletContainerFactory implements
file = file != null ? file : getWarFileDocumentRoot(); file = file != null ? file : getWarFileDocumentRoot();
file = file != null ? file : getCommonDocumentRoot(); file = file != null ? file : getCommonDocumentRoot();
if (file == null && this.logger.isWarnEnabled()) { if (file == null && this.logger.isWarnEnabled()) {
this.logger.warn("None of the document roots " this.logger.debug("None of the document roots "
+ Arrays.asList(COMMON_DOC_ROOTS) + Arrays.asList(COMMON_DOC_ROOTS)
+ " point to a directory and will be ignored."); + " point to a directory and will be ignored.");
} }