Include debug message on management context fail

Update EndpointWebMvcAutoConfiguration to log exception details at DEBUG
in addition to the WARNING message when the child context fails to
start.

See gh-4064
This commit is contained in:
Phillip Webb 2015-10-02 11:44:41 -07:00
parent e272b3a957
commit 6a31c1dda1
1 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,9 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
// and this is the signature of that happening
if (ex instanceof EmbeddedServletContainerException
|| ex.getCause() instanceof EmbeddedServletContainerException) {
logger.warn("Could not start embedded container (management endpoints are still available through JMX)");
logger.warn("Could not start embedded management container (management endpoints "
+ "are still available through JMX)");
logger.debug("Embedded management container startup failed", ex);
}
else {
throw ex;