Add the Stacktrace into the Log 93/22893/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Thu, 9 Nov 2017 07:56:42 +0000 (15:56 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Thu, 9 Nov 2017 07:56:42 +0000 (15:56 +0800)
Change-Id: If68c20e079d1d48b48b43401c95363b42bbfe5f5
Issue-ID: HOLMES-86
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java
engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java

index 01a98a4..1b774d8 100644 (file)
@@ -51,7 +51,7 @@ public class DcaeConfigurationPolling implements Runnable {
             }
             prevConfigMd5 = md5;
         } catch (CorrelationException e) {
-            log.error("Failed to poll the DCAE configurations. " + e.getMessage());
+            log.error("Failed to poll the DCAE configurations. " + e.getMessage(), e);
         } catch (JsonProcessingException e) {
             log.info("Failed to generate the MD5 information for new configurations.", e);
         }
index 47bd386..141d89e 100644 (file)
@@ -42,7 +42,7 @@ public class DMaaPAlarmPolling implements Runnable {
                 vesAlarmList = subscriber.subscribe();
                 vesAlarmList.forEach(vesAlarm -> droolsEngine.putRaisedIntoStream(vesAlarm));
             } catch (CorrelationException e) {
-                log.error("Failed polling request alarm. " + e.getMessage());
+                log.error("Failed to process alarms.", e);
             } catch (Exception e) {
                 log.error("An error occurred while processing alarm.", e);
             }