Skip to content

Commit 9e4eb03

Browse files
committed
Improve diagnostics for start failures in TomcatStarter
Closes gh-5934
1 parent 00f9ada commit 9e4eb03

File tree

1 file changed

+2
-1
lines changed
  • spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat

1 file changed

+2
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatStarter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public void onStartup(Set<Class<?>> classes, ServletContext servletContext)
6060
// Prevent Tomcat from logging and re-throwing when we know we can
6161
// deal with it in the main thread, but log for information here.
6262
if (logger.isErrorEnabled()) {
63-
logger.error("Error starting Tomcat context: " + ex.getClass().getName());
63+
logger.error("Error starting Tomcat context. Exception: "
64+
+ ex.getClass().getName() + ". Message: " + ex.getMessage());
6465
}
6566
}
6667
}

0 commit comments

Comments
 (0)