diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-04-11 11:09:50 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-04-11 11:09:50 +0530 |
commit | 6e45675f3b3bda362fa1252e43eb1307cac5b1d4 (patch) | |
tree | b468495b24cddca67f8de588de20094cefc54351 | |
parent | 9b9b7dab79b03a8f1b4485ca5f0f8cdc528eeb00 (diff) |
Sonar critical issues
Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VanH32hFUzlqc51u&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/filter/ContentLengthFilter.java
Line No-107
Change-Id: I0ba58d2ef57ff1e74f9adff505b68b6b7971f335
Issue-ID: DMAAP-402
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
-rw-r--r-- | src/main/java/com/att/nsa/filter/ContentLengthFilter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/filter/ContentLengthFilter.java b/src/main/java/com/att/nsa/filter/ContentLengthFilter.java index d70da66..5582f1f 100644 --- a/src/main/java/com/att/nsa/filter/ContentLengthFilter.java +++ b/src/main/java/com/att/nsa/filter/ContentLengthFilter.java @@ -105,7 +105,7 @@ public class ContentLengthFilter implements Filter { chain.doFilter(req, res); } } catch (CambriaApiException | NumberFormatException e) { - log.error("message size is greater then default"); + log.error("message size is greater then default:" + e); ErrorResponse errRes = new ErrorResponse(HttpStatus.SC_EXPECTATION_FAILED, DMaaPResponseCode.MSG_SIZE_EXCEEDS_MSG_LIMIT.getResponseCode(), errorMessages.getMsgSizeExceeds() + jsonObj.toString()); |