mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 05:02:35 +08:00
Plugins: Fix plugin registered startup log line (#54634)
* fix plugin registered log * remove stale test
This commit is contained in:
@ -48,11 +48,6 @@ func (m *Manager) Start(ctx context.Context, pluginID string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if p.IsCorePlugin() {
|
||||
return nil
|
||||
}
|
||||
|
||||
m.log.Info("Plugin registered", "pluginID", p.ID)
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
|
||||
@ -106,6 +101,10 @@ func startPluginAndRestartKilledProcesses(ctx context.Context, p *plugins.Plugin
|
||||
return err
|
||||
}
|
||||
|
||||
if p.IsCorePlugin() {
|
||||
return nil
|
||||
}
|
||||
|
||||
go func(ctx context.Context, p *plugins.Plugin) {
|
||||
if err := restartKilledProcess(ctx, p); err != nil {
|
||||
p.Logger().Error("Attempt to restart killed plugin process failed", "error", err)
|
||||
|
Reference in New Issue
Block a user