Either log or rethrow this exception 33/30233/1
authorSwapnali Pode <SP00501638@techmahindra.com>
Mon, 5 Feb 2018 09:39:41 +0000 (15:09 +0530)
committerSwapnali Pode <SP00501638@techmahindra.com>
Mon, 5 Feb 2018 09:40:08 +0000 (15:10 +0530)
Either log or rethrow this exception
EventBusConsumer.java:L163

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.router-core%3Arouter-core#resolved=false|severities=CRITICAL

Location:
src/main/java/org/onap/aai/event/EventBusConsumer.java

Change-Id: Iecc18afc17a0a40d2cbaf853ca6209a67d6f871c
Issue-ID: AAI-728
Signed-off-by: Swapnali Pode <SP00501638@techmahindra.com>
src/main/java/org/onap/aai/event/EventBusConsumer.java

index 5e54d3b..fb937d3 100644 (file)
@@ -161,7 +161,7 @@ public class EventBusConsumer extends ScheduledPollConsumer {
         }
 
       } catch (Exception e) {
-        logger.error(RouterCoreMsgs.EVENT_PROCESSING_EXCEPTION, e.getLocalizedMessage());
+        logger.error(RouterCoreMsgs.EVENT_PROCESSING_EXCEPTION,e,e.getLocalizedMessage());
       } finally {
         // log exception if an exception occurred and was not handled
         if (message.getException() != null) {