Events: Drop log level for events to debug (#22997)

This commit is contained in:
Tom Proctor
2023-09-12 15:21:41 +01:00
committed by GitHub
parent 6fa1953ea5
commit 7d7564b829
2 changed files with 5 additions and 1 deletions

4
changelog/22997.txt Normal file
View File

@@ -0,0 +1,4 @@
```release-note:change
events: Log level for processing an event dropped from info to debug.
```

View File

@@ -127,7 +127,7 @@ func (bus *EventBus) SendEventInternal(ctx context.Context, ns *namespace.Namesp
EventType: string(eventType), EventType: string(eventType),
PluginInfo: pluginInfo, 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. // 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. // But, it is called automatically after bus.timeout, so there won't be any leak as long as bus.timeout is not too long.