Author: markt Date: Wed Oct 21 14:00:54 2015 New Revision: 1709842 URL: http://svn.apache.org/viewvc?rev=1709842&view=rev Log: Add debug logging option for processing errors (helped track down another failure with the examples)
Modified: tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties tomcat/trunk/java/org/apache/coyote/http2/StreamProcessor.java Modified: tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties?rev=1709842&r1=1709841&r2=1709842&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties (original) +++ tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties Wed Oct 21 14:00:54 2015 @@ -82,6 +82,7 @@ stream.outputBuffer.flush.debug=Connecti streamProcessor.error.connection=Connection [{0}], Stream [{1}], An error occurred during processing that was fatal to the connection streamProcessor.error.stream=Connection [{0}], Stream [{1}], An error occurred during processing that was fatal to the stream streamProcessor.httpupgrade.notsupported=HTTP upgrade is not supported within HTTP/2 streams +streamProcessor.service.error=Error during request processing streamProcessor.ssl.error=Unable to retrieve SSL request attributes streamStateMachine.debug.change=Connection [{0}], Stream [{1}], State changed from [{2}] to [{3}] Modified: tomcat/trunk/java/org/apache/coyote/http2/StreamProcessor.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/StreamProcessor.java?rev=1709842&r1=1709841&r2=1709842&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/StreamProcessor.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/StreamProcessor.java Wed Oct 21 14:00:54 2015 @@ -398,6 +398,9 @@ public class StreamProcessor extends Abs try { adapter.service(request, response); } catch (Exception e) { + if (log.isDebugEnabled()) { + log.debug(sm.getString("streamProcessor.service.error"), e); + } setErrorState(ErrorState.CLOSE_NOW, e); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org