mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Update renderer plugin source (#80643)
* rework renderer plugin source * add tests
This commit is contained in:
@@ -75,6 +75,10 @@ func (l *Loader) instrumentLoad(ctx context.Context, src plugins.PluginSource) f
|
||||
|
||||
return func(logger log.Logger, start time.Time) func([]*plugins.Plugin) {
|
||||
return func(plugins []*plugins.Plugin) {
|
||||
if len(plugins) == 0 {
|
||||
logger.Debug("Plugin source loaded, though no plugins were found")
|
||||
return
|
||||
}
|
||||
names := make([]string, len(plugins))
|
||||
for i, p := range plugins {
|
||||
names[i] = p.ID
|
||||
|
||||
Reference in New Issue
Block a user