mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 04:22:13 +08:00
Plugins: Add logs to for plugin management actions (#90587)
* Plugins: Add logs to for plugin management actions --------- Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
This commit is contained in:

committed by
GitHub

parent
08c611c68b
commit
5c966fd400
@ -107,6 +107,8 @@ func (m *PluginInstaller) install(ctx context.Context, pluginID, version string,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
m.log.Info("Updating plugin", "pluginId", pluginID, "from", plugin.Info.Version, "to", pluginArchiveInfo.Version)
|
||||
|
||||
// if existing plugin version is the same as the target update version
|
||||
if pluginArchiveInfo.Version == plugin.Info.Version {
|
||||
return nil, plugins.DuplicateError{
|
||||
@ -141,6 +143,7 @@ func (m *PluginInstaller) install(ctx context.Context, pluginID, version string,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
m.log.Info("Installing plugin", "pluginId", pluginID, "version", version)
|
||||
}
|
||||
|
||||
extractedArchive, err := m.pluginStorage.Extract(ctx, pluginID, m.pluginStorageDirFunc, pluginArchive.File)
|
||||
|
Reference in New Issue
Block a user