Improve diagnostics for start failures in TomcatStarter

Closes gh-5934
This commit is contained in:
Andy Wilkinson 2016-05-13 16:21:43 +01:00
parent 00f9adafd7
commit 9e4eb037f6
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ class TomcatStarter implements ServletContainerInitializer {
// Prevent Tomcat from logging and re-throwing when we know we can
// deal with it in the main thread, but log for information here.
if (logger.isErrorEnabled()) {
logger.error("Error starting Tomcat context: " + ex.getClass().getName());
logger.error("Error starting Tomcat context. Exception: "
+ ex.getClass().getName() + ". Message: " + ex.getMessage());
}
}
}