Plugins: Fix plugin registered startup log line (#54634)

* fix plugin registered log

* remove stale test
This commit is contained in:
Will Browne
2022-09-02 14:01:52 +02:00
committed by GitHub
parent 11689c0385
commit 43987e7f8c
3 changed files with 9 additions and 24 deletions

View File

@ -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)