Either log or rethrow this exception 09/33109/2
authorPrasadNaidu <RV00493633@techmahindra.com>
Tue, 27 Feb 2018 07:38:43 +0000 (13:08 +0530)
committerJames Forsyth <jf2512@att.com>
Tue, 27 Feb 2018 15:08:50 +0000 (15:08 +0000)
Either log or rethrow this exception
AbstractLoggingChampGraph.java:L441

Sonar Link : https://sonar.onap.org/project/issues?assignees=PrasadNaidu&id=org.onap.aai%3Achamp&open=AV7ygfKDlaLbmlVXUW53&resolved=false
Location : src/main/java/org/onap/aai/champ/event/AbstractLoggingChampGraph.java

Change-Id: Ia1b329cd8541fb0fb3dcd29729a57ebf39004fb8
Issue-ID: AAI-811
Signed-off-by: PrasadNaidu <RV00493633@techmahindra.com>
src/main/java/org/onap/aai/champ/event/AbstractLoggingChampGraph.java

index a4df273..39eb0dc 100644 (file)
@@ -439,7 +439,7 @@ public abstract class AbstractLoggingChampGraph implements ChampGraph {
       publisherPool.execute(new EventPublisher(anEvent));
     
     } catch (RejectedExecutionException re) {
-      logger.error("Event could not be published to the event bus due to: " + re.getMessage());
+      logger.error("Event could not be published to the event bus due to: " + re.getMessage(),re);
       
     } catch (NullPointerException npe) {
       logger.error("Can not publish null event to event bus.");