aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2020-01-06 16:05:58 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2020-01-06 16:05:58 +0100
commitd6559242c1495ba9948d4723e15827614758acb9 (patch)
treeb809e72699ce87b6957427716225251ebed97810
parent6c05292f7c58bc175989b5423a639f203f029574 (diff)
Remove use of commons-lang from contrainer-accesslogging
-rw-r--r--container-accesslogging/pom.xml4
-rw-r--r--container-accesslogging/src/main/java/com/yahoo/container/logging/AccessLogEntry.java32
2 files changed, 28 insertions, 8 deletions
diff --git a/container-accesslogging/pom.xml b/container-accesslogging/pom.xml
index c82cfd000d9..53c17257992 100644
--- a/container-accesslogging/pom.xml
+++ b/container-accesslogging/pom.xml
@@ -51,10 +51,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- </dependency>
- <dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/AccessLogEntry.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/AccessLogEntry.java
index 72eaf129453..b943c03f48f 100644
--- a/container-accesslogging/src/main/java/com/yahoo/container/logging/AccessLogEntry.java
+++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/AccessLogEntry.java
@@ -2,7 +2,6 @@
package com.yahoo.container.logging;
import com.yahoo.collections.ListMap;
-import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import javax.security.auth.x500.X500Principal;
import java.net.InetAddress;
@@ -456,9 +455,34 @@ public class AccessLogEntry {
@Override
public String toString() {
synchronized (monitor) {
- return new ReflectionToStringBuilder(this)
- .setExcludeFieldNames(FIELDS_EXCLUDED_FROM_TOSTRING)
- .toString();
+ return "AccessLogEntry{" +
+ "ipV4AddressInDotDecimalNotation='" + ipV4AddressInDotDecimalNotation + '\'' +
+ ", timeStampMillis=" + timeStampMillis +
+ ", durationBetweenRequestResponseMillis=" + durationBetweenRequestResponseMillis +
+ ", numBytesReturned=" + numBytesReturned +
+ ", remoteAddress='" + remoteAddress + '\'' +
+ ", remotePort=" + remotePort +
+ ", peerAddress='" + peerAddress + '\'' +
+ ", peerPort=" + peerPort +
+ ", profile='" + profile + '\'' +
+ ", errorMessage='" + errorMessage + '\'' +
+ ", fileName='" + fileName + '\'' +
+ ", userAgent='" + userAgent + '\'' +
+ ", referer='" + referer + '\'' +
+ ", user='" + user + '\'' +
+ ", hitCounts=" + hitCounts +
+ ", httpMethod='" + httpMethod + '\'' +
+ ", httpVersion='" + httpVersion + '\'' +
+ ", hostString='" + hostString + '\'' +
+ ", statusCode=" + statusCode +
+ ", scheme='" + scheme + '\'' +
+ ", localPort=" + localPort +
+ ", principal=" + principal +
+ ", sslPrincipal=" + sslPrincipal +
+ ", rawPath='" + rawPath + '\'' +
+ ", rawQuery='" + rawQuery + '\'' +
+ ", keyValues=" + keyValues +
+ '}';
}
}