daemon: remove LogPluginEventWithAttributes as it's not used

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-26 17:41:54 +02:00
parent aa764e6009
commit ebe2347ac6
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -36,15 +36,9 @@ func (daemon *Daemon) LogContainerEventWithAttributes(container *container.Conta
// LogPluginEvent generates an event related to a plugin with only the default attributes.
func (daemon *Daemon) LogPluginEvent(pluginID, refName, action string) {
daemon.LogPluginEventWithAttributes(pluginID, refName, action, map[string]string{})
}
// LogPluginEventWithAttributes generates an event related to a plugin with specific given attributes.
func (daemon *Daemon) LogPluginEventWithAttributes(pluginID, refName, action string, attributes map[string]string) {
attributes["name"] = refName
daemon.EventsService.Log(action, events.PluginEventType, events.Actor{
ID: pluginID,
Attributes: attributes,
Attributes: map[string]string{"name": refName},
})
}