Merge "Add the Stacktrace into the Log"
authortang peng <tang.peng5@zte.com.cn>
Thu, 9 Nov 2017 08:06:41 +0000 (08:06 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 9 Nov 2017 08:06:41 +0000 (08:06 +0000)
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);
             }