Skip to content

Commit

Permalink
degrade level (back) to INFO and log trace when commited
Browse files Browse the repository at this point in the history
should be a compromise as users using an error app would have been
confused by the new ERROR message (wasn't there previously)
  • Loading branch information
kares committed Sep 6, 2018
1 parent 4ed7a4e commit 5854db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jruby/rack/AbstractRackDispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5854db8

Please sign in to comment.