summaryrefslogtreecommitdiffstats
path: root/engine-d/src
diff options
context:
space:
mode:
authortang peng <tang.peng5@zte.com.cn>2017-11-09 08:06:41 +0000
committerGerrit Code Review <gerrit@onap.org>2017-11-09 08:06:41 +0000
commit79f4bc6b31cfc357c7268c6dfba30a6dc0f8abd9 (patch)
tree6f9466f5f39f6cd9bddcb8af797a7744ee2b869c /engine-d/src
parent02913e9423547ceaeb05b94972c6908e16f2e1a5 (diff)
parent95058849173aea890e3b4f623395ce7c49714ea6 (diff)
Merge "Add the Stacktrace into the Log"
Diffstat (limited to 'engine-d/src')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java2
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java b/engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java
index 01a98a4..1b774d8 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java
@@ -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);
}
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java b/engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java
index 47bd386..141d89e 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java
@@ -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);
}