From 7d7564b82994fb6efd864f0e40771211be45a954 Mon Sep 17 00:00:00 2001 From: Tom Proctor Date: Tue, 12 Sep 2023 15:21:41 +0100 Subject: [PATCH] Events: Drop log level for events to debug (#22997) --- changelog/22997.txt | 4 ++++ vault/eventbus/bus.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/22997.txt diff --git a/changelog/22997.txt b/changelog/22997.txt new file mode 100644 index 0000000000..41a162eb62 --- /dev/null +++ b/changelog/22997.txt @@ -0,0 +1,4 @@ +```release-note:change +events: Log level for processing an event dropped from info to debug. +``` + diff --git a/vault/eventbus/bus.go b/vault/eventbus/bus.go index a9909fb56e..02a512c50d 100644 --- a/vault/eventbus/bus.go +++ b/vault/eventbus/bus.go @@ -127,7 +127,7 @@ func (bus *EventBus) SendEventInternal(ctx context.Context, ns *namespace.Namesp EventType: string(eventType), PluginInfo: pluginInfo, } - bus.logger.Info("Sending event", "event", eventReceived) + bus.logger.Debug("Sending event", "event", eventReceived) // We can't easily know when the SendEvent is complete, so we can't call the cancel function. // But, it is called automatically after bus.timeout, so there won't be any leak as long as bus.timeout is not too long.