Skip to content

Commit

Permalink
fix(pubsub): Don't log all pubsub events (#524)
Browse files Browse the repository at this point in the history
We're now logging all pubsub events in AbstractNotificationAgent;
given the volume of these events, turn off this logging for pubsub.
  • Loading branch information
ezimanyi authored and emjburns committed Apr 18, 2019
1 parent 5d16e86 commit 31a6c6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 31a6c6b

Please sign in to comment.