From 31a6c6bac31b60c82ed6a02d199383b12827b06c Mon Sep 17 00:00:00 2001 From: Eric Zimanyi Date: Thu, 18 Apr 2019 16:38:23 -0400 Subject: [PATCH] fix(pubsub): Don't log all pubsub events (#524) We're now logging all pubsub events in AbstractNotificationAgent; given the volume of these events, turn off this logging for pubsub. --- .../echo/notification/AbstractEventNotificationAgent.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo-notifications/src/main/groovy/com/netflix/spinnaker/echo/notification/AbstractEventNotificationAgent.groovy b/echo-notifications/src/main/groovy/com/netflix/spinnaker/echo/notification/AbstractEventNotificationAgent.groovy index f4d735ae7..a7f580530 100644 --- a/echo-notifications/src/main/groovy/com/netflix/spinnaker/echo/notification/AbstractEventNotificationAgent.groovy +++ b/echo-notifications/src/main/groovy/com/netflix/spinnaker/echo/notification/AbstractEventNotificationAgent.groovy @@ -53,7 +53,7 @@ abstract class AbstractEventNotificationAgent implements EchoEventListener { @Override void processEvent(Event event) { - if (log.isDebugEnabled() && mapper != null) { + if (log.isDebugEnabled() && mapper != null && !event.getDetails().getType().equals("pubsub")) { log.debug("Event received: " + mapper.writerWithDefaultPrettyPrinter().writeValueAsString(event)) }