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:
parent
e272b3a957
commit
6a31c1dda1
|
|
@ -174,7 +174,9 @@ public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware,
|
||||||
// and this is the signature of that happening
|
// and this is the signature of that happening
|
||||||
if (ex instanceof EmbeddedServletContainerException
|
if (ex instanceof EmbeddedServletContainerException
|
||||||
|| ex.getCause() 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 {
|
else {
|
||||||
throw ex;
|
throw ex;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue