mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
cephfs: replace Errorf with ErrorLogMsg in loadAvailableMounters
replace Errorf with ErrorLog in loadAvailableMounters for context based logging. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
fbe090065d
commit
3fe3d25dda
@ -77,7 +77,7 @@ func loadAvailableMounters(conf *util.Config) error {
|
||||
|
||||
err := kernelMounterProbe.Run()
|
||||
if err != nil {
|
||||
klog.Errorf("failed to run mount.ceph %v", err)
|
||||
util.ErrorLogMsg("failed to run mount.ceph %v", err)
|
||||
} else {
|
||||
// fetch the current running kernel info
|
||||
release, kvErr := util.GetKernelVersion()
|
||||
@ -95,7 +95,7 @@ func loadAvailableMounters(conf *util.Config) error {
|
||||
|
||||
err = fuseMounterProbe.Run()
|
||||
if err != nil {
|
||||
klog.Errorf("failed to run ceph-fuse %v", err)
|
||||
util.ErrorLogMsg("failed to run ceph-fuse %v", err)
|
||||
} else {
|
||||
util.DefaultLog("loaded mounter: %s", volumeMounterFuse)
|
||||
availableMounters = append(availableMounters, volumeMounterFuse)
|
||||
|
Loading…
Reference in New Issue
Block a user