Author: markt Date: Wed Aug 14 09:35:40 2013 New Revision: 1513782 URL: http://svn.apache.org/r1513782 Log: Provide a request processing time for an error response if possible.
Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java?rev=1513782&r1=1513781&r2=1513782&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java (original) +++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Processor.java Wed Aug 14 09:35:40 2013 @@ -1611,7 +1611,11 @@ public abstract class AbstractHttp11Proc if (error) { // 500 - Internal Server Error response.setStatus(500); - getAdapter().log(request, response, 0); + long time = 0; + if (request.getStartTime() != -1) { + time = System.currentTimeMillis() - request.getStartTime(); + } + getAdapter().log(request, response, time); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org