summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrittany Plummer (bp896r) <bp896r@att.com>2019-10-28 10:22:41 -0400
committerBrittany Plummer (bp896r) <bp896r@att.com>2019-10-28 10:22:41 -0400
commit00c3298be8782d474b8e1a09e6391ffd35bf7c06 (patch)
tree70fd6d3f290921f64bbf78afa4f6188133b3b472
parent02f01cb153a0b8a7e2dea515a90376cf6ab0f1fa (diff)
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) <bp896r@att.com>
-rw-r--r--reference/logging-filter/logging-filter-base/src/main/java/org/onap/logging/filter/base/PayloadLoggingClientFilter.java2
1 files changed, 2 insertions, 0 deletions
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.");
}
}