You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/03/14 10:13:17 UTC

[2/2] git commit: WICKET-5241 RequestLogger's server duration does not include 'detach duration'

WICKET-5241 RequestLogger's server duration does not include 'detach duration'

Track the request logger's end time after all pages have been detached.
This way it shows the correct time fo the page rendering.


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/1d9ef110
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/1d9ef110
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/1d9ef110

Branch: refs/heads/5241-request-logger-duration
Commit: 1d9ef1107958deb83f9f87a9e8be80d48b267ecf
Parents: de424fe
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri Mar 14 11:11:39 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Fri Mar 14 11:11:39 2014 +0200

----------------------------------------------------------------------
 wicket-core/src/main/java/org/apache/wicket/Application.java | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/1d9ef110/wicket-core/src/main/java/org/apache/wicket/Application.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/Application.java b/wicket-core/src/main/java/org/apache/wicket/Application.java
index a2bf907..2a08c2c 100644
--- a/wicket-core/src/main/java/org/apache/wicket/Application.java
+++ b/wicket-core/src/main/java/org/apache/wicket/Application.java
@@ -1639,17 +1639,13 @@ public abstract class Application implements UnboundListener, IEventSink
 				{
 					Session.get().getPageManager().commitRequest();
 				}
-			}
 
-			@Override
-			public void onEndRequest(RequestCycle cycle)
-			{
 				if (Application.exists())
 				{
 					IRequestLogger requestLogger = Application.get().getRequestLogger();
 					if (requestLogger != null)
 					{
-						requestLogger.requestTime((System.currentTimeMillis() - cycle.getStartTime()));
+						requestLogger.requestTime((System.currentTimeMillis() - requestCycle.getStartTime()));
 					}
 				}
 			}