Author: ssolsagl
Date: 2007-04-30 14:40:15 +0200 (Mon, 30 Apr 2007)
New Revision: 4926

Modified:
   
trunk/war/src/main/java/no/schibstedsok/searchportal/http/servlet/VelocityDebugServlet.java
Log:
more log

Modified: 
trunk/war/src/main/java/no/schibstedsok/searchportal/http/servlet/VelocityDebugServlet.java
===================================================================
--- 
trunk/war/src/main/java/no/schibstedsok/searchportal/http/servlet/VelocityDebugServlet.java
 2007-04-30 10:48:22 UTC (rev 4925)
+++ 
trunk/war/src/main/java/no/schibstedsok/searchportal/http/servlet/VelocityDebugServlet.java
 2007-04-30 12:40:15 UTC (rev 4926)
@@ -54,8 +54,8 @@
                String templateDir = 
System.getProperty("VELOCITY_DEVELOP_BASEDIR");
                
                if(!isLocalhost(request) || 
!"true".equals(System.getProperty(VELOCITY_DEBUG))) {
-                       LOG.warn("velocitydebug when running localhost and 
VELOCITY_DEBUG set to true");
-                       
+                       LOG.warn("velocitydebug when running localhost and 
VELOCITY_DEBUG set to true: ipAddr=" + request.getRemoteAddr());
+                       LOG.warn("your ip is " + request.getRemoteAddr() + " 
isLocalhost ? " + isLocalhost(request));
                        body.appendChild(doc.createTextNode("Localhost only, 
start with -DVELOCITY_DEBUG=true"));
                        html.appendChild(body);
                        doc.appendChild(html);

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to