Improve error reporting when flex driver has failed to initialize.

This commit is contained in:
Slava Semushin
2017-06-05 17:07:33 +02:00
parent 0cff839317
commit ec12e6cc9d
2 changed files with 3 additions and 3 deletions

View File

@@ -362,7 +362,7 @@ func (pm *VolumePluginMgr) InitPlugins(plugins []VolumePlugin, host VolumeHost)
}
err := plugin.Init(host)
if err != nil {
glog.Errorf("Failed to load volume plugin %s, error: %s", plugin, err.Error())
glog.Errorf("Failed to load volume plugin %s, error: %s", name, err.Error())
allErrs = append(allErrs, err)
continue
}