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 2010/10/13 20:25:20 UTC
svn commit: r1022225 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
Author: mgrigorov
Date: Wed Oct 13 18:25:19 2010
New Revision: 1022225
URL: http://svn.apache.org/viewvc?rev=1022225&view=rev
Log:
WICKET-3103 RequestCycle logs something, when its intended for servlet container
When no suitable request handler is found log just a debug message.
It is common to setup WicketFilter to listens on '/*' and then all requests for static resources (next to WEB-INF folder) to be filtered and let the container to deliver them.
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java?rev=1022225&r1=1022224&r2=1022225&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/request/cycle/RequestCycle.java Wed Oct 13 18:25:19 2010
@@ -220,9 +220,12 @@ public class RequestCycle extends Reques
return true;
}
- // Did not find any suitable handler, thus not executing the request
- log.error("Unable to execute request. No suitable RequestHandler found. URL=" +
- request.getUrl());
+ if (log.isDebugEnabled())
+ {
+ // Did not find any suitable handler, thus not executing the request
+ log.debug("Unable to execute request. No suitable RequestHandler found. URL=" +
+ request.getUrl());
+ }
}
catch (Exception e)
{