diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2017-11-29 15:01:03 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2017-11-29 15:01:03 +0100 |
commit | a0e14655026e65e60373da4eaf728e43f75ebf38 (patch) | |
tree | 8c5e7b51d9e440c4cac046d06bf76fb63bc63229 /container-accesslogging/src | |
parent | 15099d9518e106e2010b671d8c7225a9158becd9 (diff) |
Remove type of user principal from json log
Diffstat (limited to 'container-accesslogging/src')
-rw-r--r-- | container-accesslogging/src/main/java/com/yahoo/container/logging/JSONFormatter.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/container-accesslogging/src/main/java/com/yahoo/container/logging/JSONFormatter.java b/container-accesslogging/src/main/java/com/yahoo/container/logging/JSONFormatter.java index cca8da2e936..2e97dff775b 100644 --- a/container-accesslogging/src/main/java/com/yahoo/container/logging/JSONFormatter.java +++ b/container-accesslogging/src/main/java/com/yahoo/container/logging/JSONFormatter.java @@ -65,10 +65,7 @@ public class JSONFormatter { Principal principal = accessLogEntry.getUserPrincipal(); if (principal != null) { - generator.writeObjectFieldStart("user-principal"); - generator.writeStringField("name", principal.getName()); - generator.writeStringField("type", principal.getClass().getName()); - generator.writeEndObject(); + generator.writeStringField("user-principal", principal.getName()); } // Only add remote address/port fields if relevant |