diff --git a/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGServer.java b/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGServer.java index 6b1c129..635e3f4 100644 --- a/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGServer.java +++ b/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGServer.java @@ -493,7 +493,7 @@ public void run() { // an exception will be thrown that we don't care about. filter // those out. if (!shutdown.get()) { - t.printStackTrace(); + LOG.warn("Caught exception during accept", t); } } if (sessionOnDeck != null) { diff --git a/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGSession.java b/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGSession.java index 59e6e87..468862e 100644 --- a/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGSession.java +++ b/nailgun-server/src/main/java/com/martiansoftware/nailgun/NGSession.java @@ -305,7 +305,6 @@ public void run() { } catch (Throwable t) { LOG.warn("Internal error in session", t); - t.printStackTrace(); } ((ThreadLocalInputStream) System.in).init(null);