From bf2a7fee4170e418e7ac774af7679257fe26dc69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=86=9B10092085?= Date: Mon, 7 Aug 2023 16:25:21 +0800 Subject: [PATCH] Adjust the log level of Initialize Plugins --- container/factory.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/container/factory.go b/container/factory.go index 92212daa34..c48a64e163 100644 --- a/container/factory.go +++ b/container/factory.go @@ -216,7 +216,9 @@ func InitializePlugins(factory info.MachineInfoFactory, fsInfo fs.FsInfo, includ for name, plugin := range plugins { watcher, err := plugin.Register(factory, fsInfo, includedMetrics) if err != nil { - klog.V(5).Infof("Registration of the %s container factory failed: %v", name, err) + klog.Infof("Registration of the %s container factory failed: %v", name, err) + } else { + klog.Infof("Registration of the %s container factory successfully", name) } if watcher != nil { containerWatchers = append(containerWatchers, watcher)