From 00c3298be8782d474b8e1a09e6391ffd35bf7c06 Mon Sep 17 00:00:00 2001 From: "Brittany Plummer (bp896r)" Date: Mon, 28 Oct 2019 10:22:41 -0400 Subject: Added log line to indicate empty entity on responses in payload filter Issue-ID: LOG-1183 Change-Id: I5e5f2cbbbddc0dada8940f5a4c553a6c9f315f06 Signed-off-by: Brittany Plummer (bp896r) --- .../java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/logging-filter/logging-filter-base/src/main/java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java b/reference/logging-filter/logging-filter-base/src/main/java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java index 88c95aa..9b7fb5b 100644 --- a/reference/logging-filter/logging-filter-base/src/main/java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java +++ b/reference/logging-filter/logging-filter-base/src/main/java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java @@ -108,6 +108,8 @@ public class PayloadLoggingClientFilter implements ClientRequestFilter, ClientRe final StringBuilder sb = new StringBuilder(); responseContext.setEntityStream(logInboundEntity(sb, responseContext.getEntityStream(), DEFAULT_CHARSET)); logger.debug(sb.toString()); + } else { + logger.debug("Response was returned with an empty entity."); } } -- cgit 1.2.3-korg