aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@bell.ca>2021-01-06 14:09:26 +0000
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-01-14 18:13:56 +0000
commitc67347ae275d44683c4e220600ee6c3d3bedaefb (patch)
treebab39b111bd043484ffbd1b9b75b04c82de7b66a
parent880b06a9924251681e87e4068b40ae26eb93ce29 (diff)
Removing duplicate logging of single response event
Change-Id: I88c8f2eea9cb295e422d20222df21a46ef84cd4e Issue-ID: POLICY-2885 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca> (cherry picked from commit 65450784b137f50442fdf170a2358c3953560d1d)
-rw-r--r--plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/main/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcProducer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/main/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcProducer.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/main/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcProducer.java
index 6046a310b..410c83c40 100644
--- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/main/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcProducer.java
+++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-grpc/src/main/java/org/onap/policy/apex/plugins/event/carrier/grpc/ApexGrpcProducer.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2020 Nordix Foundation.
- * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ * Modifications Copyright (C) 2020-2021 Bell Canada. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -125,8 +125,7 @@ public class ApexGrpcProducer extends ApexPluginsEventProducer implements CdsPro
}
if (!EventType.EVENT_COMPONENT_EXECUTED.equals(cdsResponse.get().getStatus().getEventType())) {
- LOGGER.error("Sending event \"{}\" by {} to CDS failed. Response from CDS:\n{}", eventName, this.name,
- cdsResponse.get());
+ LOGGER.error("Sending event \"{}\" by {} to CDS failed.", eventName, this.name);
}
consumeEvent(executionId, cdsResponse.get());
@@ -166,7 +165,6 @@ public class ApexGrpcProducer extends ApexPluginsEventProducer implements CdsPro
@Override
public void onMessage(ExecutionServiceOutput message) {
- LOGGER.info("Received notification from CDS: {}", message);
cdsResponse.set(message);
}