Author: hansbak
Date: Sun Jun 26 03:11:17 2011
New Revision: 1139703
URL:
http://svn.apache.org/viewvc?rev=1139703&view=revLog:
improve log messages (add domainname)
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java?rev=1139703&r1=1139702&r2=1139703&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java Sun Jun 26 03:11:17 2011
@@ -207,7 +207,7 @@ public class ContextFilter implements Fi
allowList.add("/"); // No path is allowed.
allowList.add(""); // No path is allowed.
- if (debug) Debug.log("[Request]: " + httpRequest.getRequestURI(), module);
+ if (debug) Debug.log("[Domain]: " + httpRequest.getServerName() + " [Request]: " + httpRequest.getRequestURI(), module);
requestPath = httpRequest.getServletPath();
if (requestPath == null) requestPath = "";
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java?rev=1139703&r1=1139702&r2=1139703&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java Sun Jun 26 03:11:17 2011
@@ -138,7 +138,7 @@ public class ControlServlet extends Http
if (Debug.timingOn()) {
timer = new UtilTimer();
timer.setLog(true);
- timer.timerString("[" + rname + "] Request Begun, encoding=[" + charset + "]", module);
+ timer.timerString("[" + rname + "(Domain:" + request.getServerName() + ")] Request Begun, encoding=[" + charset + "]", module);
}
// Setup the CONTROL_PATH for JSP dispatching.
@@ -321,7 +321,7 @@ public class ControlServlet extends Http
Debug.logError(t, "Error in ControlServlet saving ServerHit/Bin information; the output was successful, but can't save this tracking information. The error was: " + t.toString(), module);
}
}
- if (Debug.timingOn()) timer.timerString("[" + rname + "] Request Done", module);
+ if (Debug.timingOn()) timer.timerString("[" + rname + "(Domain:" + request.getServerName() + ")] Request Done", module);
// sanity check 2: make sure there are no user or session infos in the delegator, ie clear the thread
GenericDelegator.clearUserIdentifierStack();