Output the reason why broker exit unexpectedly during startup
Reviewers: Mickael Maison
@@ -108,9 +108,9 @@ object Kafka extends Logging {
try server.startup()
catch {
- case _: Throwable =>
+ case e: Throwable =>
// KafkaServer.startup() calls shutdown() in case of exceptions, so we invoke `exit` to set the status code
- fatal("Exiting Kafka.")
+ fatal("Exiting Kafka due to fatal exception during startup.", e)
Exit.exit(1)
}
