diff options
author | 2017-11-09 15:56:42 +0800 | |
---|---|---|
committer | 2017-11-09 15:56:42 +0800 | |
commit | 95058849173aea890e3b4f623395ce7c49714ea6 (patch) | |
tree | 4b0ddd1423b415cab1d94f3b353e3b198815b4ae /engine-d/src/main/java | |
parent | a4e26fe5631174da6718dec2ee97be5e34e9f73e (diff) |
Add the Stacktrace into the Log
Change-Id: If68c20e079d1d48b48b43401c95363b42bbfe5f5
Issue-ID: HOLMES-86
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d/src/main/java')
-rw-r--r-- | engine-d/src/main/java/org/onap/holmes/engine/dcae/DcaeConfigurationPolling.java | 2 | ||||
-rw-r--r-- | engine-d/src/main/java/org/onap/holmes/engine/dmaap/DMaaPAlarmPolling.java | 2 |
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); } |