From cb7e6b2f0a9c10417acbdac3d77e900d12734353 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Fri, 12 Jan 2024 08:47:29 +0800 Subject: [PATCH] update per code review Signed-off-by: Patrick Zheng --- plugin/manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/manager.go b/plugin/manager.go index 3ffbf0df..37ff2af1 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -115,10 +115,12 @@ type CLIInstallOptions struct { // plugin is malfunctioning, it will be overwritten. func (m *CLIManager) Install(ctx context.Context, installOpts CLIInstallOptions) (*proto.GetMetadataResponse, *proto.GetMetadataResponse, error) { // initialization + logger := log.GetLogger(ctx) overwrite := installOpts.Overwrite if installOpts.PluginPath == "" { return nil, nil, errors.New("plugin source path cannot be empty") } + logger.Debugf("Installing plugin from plugin path %s", installOpts.PluginPath) var installFromNonDir bool pluginExecutableFile, pluginName, err := parsePluginFromDir(ctx, installOpts.PluginPath) if err != nil {