change: update logs

This commit is contained in:
lilong.129
2023-09-06 13:43:10 +08:00
parent 0e1caab458
commit abe7fe5e25
3 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ func initPlugin(path, venv string, logOn bool) (plugin funplugin.IPlugin, err er
// found plugin file
plugin, err = funplugin.Init(pluginPath, pluginOptions...)
if err != nil {
log.Error().Err(err).Msgf("init plugin failed: %s", pluginPath)
log.Error().Str("path", pluginPath).Msg("init plugin failed")
err = errors.Wrap(code.InitPluginFailed, err.Error())
return
}