diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-07-28 17:21:35 +0100 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-07-29 10:18:20 +0100 |
commit | 1036206455218a4722079b749e628ca96825418d (patch) | |
tree | 1c8b9fbf00a11f6739800f6a32bb9a007b9215cd /plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main | |
parent | 7803acd9f4abdf51dc686b68d4706f26af05ea40 (diff) |
Improve APEX logging for irrelevant events
When multiple policies are expecting event on the same topic/endpoint,
a lot of event parsing failure log messages are generated
unnecessarily. With this change, only a 1 line message will
be printed if an event cannot be parsed, and the detailed messages
will be available at debug level.
Change-Id: If1e7460ef5ed86fd470396f1e2ed8cc3c8af70c4
Issue-ID: POLICY-3499
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main')
-rw-r--r-- | plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main/java/org/onap/policy/apex/plugins/event/carrier/restclient/ApexRestClientConsumer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main/java/org/onap/policy/apex/plugins/event/carrier/restclient/ApexRestClientConsumer.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main/java/org/onap/policy/apex/plugins/event/carrier/restclient/ApexRestClientConsumer.java index fc7c11e9e..4f95c5636 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main/java/org/onap/policy/apex/plugins/event/carrier/restclient/ApexRestClientConsumer.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restclient/src/main/java/org/onap/policy/apex/plugins/event/carrier/restclient/ApexRestClientConsumer.java @@ -172,7 +172,7 @@ public class ApexRestClientConsumer extends ApexPluginsEventConsumer { // Send the event into Apex eventReceiver.receiveEvent(new Properties(), eventJsonString); } catch (final Exception e) { - LOGGER.warn("error receiving events on thread {}", consumerThread.getName(), e); + LOGGER.debug("error receiving events on thread {}", consumerThread.getName(), e); } } } |