From 427d3140b30dd8e5c722a6ce6967085112fda1d6 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Mar 2016 12:30:35 +0000 Subject: [PATCH] Remove unwanted printing of stack trace from the Launcher Previously, the Launcher would call ex.printStackTrace for any exception that was thrown when launching the application. This was unnecessary as the stack trace should already have been logged by the application when it failed to start. This commit removes the call to ex.printStackTrace, thereby allowing an exception to be logged only once or not at all after successful failure analysis. Closes gh-5358 --- .../src/main/java/org/springframework/boot/loader/Launcher.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java index a1e7c3ec42..3938031c37 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java @@ -58,7 +58,6 @@ public abstract class Launcher { launch(args, getMainClass(), classLoader); } catch (Exception ex) { - ex.printStackTrace(); System.exit(1); } }