Author: remy.maucherat(a)jboss.com
Date: 2014-09-04 09:08:00 -0400 (Thu, 04 Sep 2014)
New Revision: 2501
Modified:
branches/7.5.x/src/main/java/org/apache/catalina/valves/AccessLogValve.java
Log:
BZ1029491: resolveHosts should have been removed, but since it is in the domain model, it
should be used.
Modified: branches/7.5.x/src/main/java/org/apache/catalina/valves/AccessLogValve.java
===================================================================
--- branches/7.5.x/src/main/java/org/apache/catalina/valves/AccessLogValve.java 2014-09-03
15:52:30 UTC (rev 2500)
+++ branches/7.5.x/src/main/java/org/apache/catalina/valves/AccessLogValve.java 2014-09-04
13:08:00 UTC (rev 2501)
@@ -949,7 +949,11 @@
protected class HostElement implements AccessLogElement {
public void addElement(StringBuilder buf, Date date, Request request,
Response response, long time) {
- buf.append(request.getRemoteHost());
+ if (resolveHosts) {
+ buf.append(request.getRemoteHost());
+ } else {
+ buf.append(request.getRemoteAddr());
+ }
}
}
Show replies by date