Author: dashorst
Date: Thu Apr 26 01:23:24 2007
New Revision: 532652

URL: http://svn.apache.org/viewvc?view=rev&rev=532652
Log:
Request logging continues even when session size can't be determined

Modified:
    
incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/RequestLogger.java

Modified: 
incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/RequestLogger.java?view=diff&rev=532652&r1=532651&r2=532652
==============================================================================
--- 
incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
 (original)
+++ 
incubator/wicket/sandbox/dashorst/wicket-1.3-20061204-patched/wicket/src/main/java/wicket/protocol/http/RequestLogger.java
 Thu Apr 26 01:23:24 2007
@@ -215,7 +215,14 @@
                        long sizeInBytes = -1;
                        
if(Application.get().getRequestLoggerSettings().getRecordSessionSize())
                        {
-                               sizeInBytes = session.getSizeInBytes();
+                               try
+                               {
+                                       sizeInBytes = session.getSizeInBytes();
+                               }
+                               catch (Exception e) 
+                               {
+                                       log.error("There was an error trying to 
retrieve the size of the session: " + e.getMessage(),e);
+                               }
                        }
                        rd.setSessionSize(sizeInBytes);
                        rd.setTimeTaken(timeTaken);


Reply via email to