Author: rgardler
Date: Tue Nov 21 17:30:15 2006
New Revision: 477999
URL: http://svn.apache.org/viewvc?view=rev&rev=477999
Log:
A little logging goes a long way
Modified:
forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/locationMap/Location.java
Modified:
forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/locationMap/Location.java
URL:
http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/locationMap/Location.java?view=diff&rev=477999&r1=477998&r2=477999
==============================================================================
---
forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/locationMap/Location.java
(original)
+++
forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/locationMap/Location.java
Tue Nov 21 17:30:15 2006
@@ -23,6 +23,7 @@
import java.net.URL;
import org.apache.forrest.core.exception.ProcessingException;
+import org.apache.log4j.Logger;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -37,6 +38,9 @@
*
*/
public class Location {
+
+ Logger log = Logger.getLogger(Location.class);
+
private String requestPattern;
private boolean isRequired;
@@ -145,6 +149,7 @@
value = r.getParen(i);
sourcePath = sourcePath.replace(variable,
value);
}
+ log.debug("After variable substitution the source path
is " + sourcePath);
} else {
throw new ProcessingException(
"Unable to extract variable values from
requestURI");