From 5854db81cba68ec828908ca1cb646b896faeec64 Mon Sep 17 00:00:00 2001 From: kares Date: Thu, 6 Sep 2018 11:43:21 +0200 Subject: [PATCH] degrade level (back) to INFO and log trace when commited should be a compromise as users using an error app would have been confused by the new ERROR message (wasn't there previously) --- src/main/java/org/jruby/rack/AbstractRackDispatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jruby/rack/AbstractRackDispatcher.java b/src/main/java/org/jruby/rack/AbstractRackDispatcher.java index 11ce2763..155ffb09 100644 --- a/src/main/java/org/jruby/rack/AbstractRackDispatcher.java +++ b/src/main/java/org/jruby/rack/AbstractRackDispatcher.java @@ -46,10 +46,10 @@ protected void handleException( final RackResponseEnvironment response) throws IOException { if ( response.isCommitted() ) { - context.log(RackLogger.ERROR, "couldn't handle exception "+ e +" : response is committed"); + context.log(RackLogger.ERROR, "couldn't handle exception (response is committed)", e); return; } - context.log(RackLogger.ERROR, "resetting rack response due to exception:" + e); + context.log(RackLogger.INFO, "resetting rack response due exception: " + e); response.reset(); afterException(request, e, response);