From e6e5179cd681f2449d263efce745719de31a611e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=81=A5=E4=BF=9E?= Date: Sat, 5 Aug 2023 11:46:53 +0800 Subject: [PATCH] fix(skeleton): fix skeleton log not only for reporter --- pkg/plugins/skeleton/generic.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/plugins/skeleton/generic.go b/pkg/plugins/skeleton/generic.go index 8a5d7ad..9cd0ee1 100644 --- a/pkg/plugins/skeleton/generic.go +++ b/pkg/plugins/skeleton/generic.go @@ -288,7 +288,6 @@ func (p *PluginRegistrationWrapper) start() (startError error) { defer func() { p.Unlock() if startError != nil { - klog.Errorf("start %s failed with error: %v", p.Name(), startError) // call stop to revert executed start steps for all servers _ = p.stop() } @@ -349,7 +348,7 @@ func (p *PluginRegistrationWrapper) stop() (stopErr error) { return fmt.Errorf("stop wrapped plugin of %s failed with err: %v", p.Name(), err) } - klog.Infof("stop reporter plugin %s successfully", p.Name()) + klog.Infof("stop plugin %s successfully", p.Name()) return nil }