diff options
author | 2019-09-24 19:57:12 -0400 | |
---|---|---|
committer | 2019-09-24 19:57:12 -0400 | |
commit | 9e7232718ac226f8233db8808a53ee75ea1d2131 (patch) | |
tree | 40314c16b6e31d7e4653f03c56d9efa73adfe1f9 /reference/logging-filter/logging-filter-spring/src/main | |
parent | 94e4eb867e0194f6fe99f472eb60c41044df63f2 (diff) |
Refactoring PayloadLoggingServletFilter
Replacing try-catch-finally for all Streams with try-with-resource
Issue-ID: LOG-1147
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I352096a3c95277770734f7844c4b890f31df61da
Diffstat (limited to 'reference/logging-filter/logging-filter-spring/src/main')
-rw-r--r-- | reference/logging-filter/logging-filter-spring/src/main/java/org/onap/logging/filter/spring/StatusLoggingInterceptor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reference/logging-filter/logging-filter-spring/src/main/java/org/onap/logging/filter/spring/StatusLoggingInterceptor.java b/reference/logging-filter/logging-filter-spring/src/main/java/org/onap/logging/filter/spring/StatusLoggingInterceptor.java index 3401efa..887c7ab 100644 --- a/reference/logging-filter/logging-filter-spring/src/main/java/org/onap/logging/filter/spring/StatusLoggingInterceptor.java +++ b/reference/logging-filter/logging-filter-spring/src/main/java/org/onap/logging/filter/spring/StatusLoggingInterceptor.java @@ -55,7 +55,7 @@ public class StatusLoggingInterceptor extends AbstractServletFilter implements H logger.debug("URI : {}", request.getRequestURI()); logger.debug("Method : {}", request.getMethod()); logger.debug("Headers : {}", getSecureRequestHeaders(request)); - logger.debug("==========================request end================================================"); + logger.debug("===========================request end=================================================="); } // TODO previously no response information was being logged, I followed the format in SpringClientPayloadFilter @@ -67,7 +67,7 @@ public class StatusLoggingInterceptor extends AbstractServletFilter implements H logger.debug("Status code : {}", response.getStatus()); logger.debug("Status text : {}", Response.Status.fromStatusCode(response.getStatus())); logger.debug("Headers : {}", formatResponseHeaders(response)); - logger.debug("=======================response end================================================="); + logger.debug("============================response end============================================"); } } } |