mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +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()
|
err := kernelMounterProbe.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("failed to run mount.ceph %v", err)
|
util.ErrorLogMsg("failed to run mount.ceph %v", err)
|
||||||
} else {
|
} else {
|
||||||
// fetch the current running kernel info
|
// fetch the current running kernel info
|
||||||
release, kvErr := util.GetKernelVersion()
|
release, kvErr := util.GetKernelVersion()
|
||||||
@ -95,7 +95,7 @@ func loadAvailableMounters(conf *util.Config) error {
|
|||||||
|
|
||||||
err = fuseMounterProbe.Run()
|
err = fuseMounterProbe.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("failed to run ceph-fuse %v", err)
|
util.ErrorLogMsg("failed to run ceph-fuse %v", err)
|
||||||
} else {
|
} else {
|
||||||
util.DefaultLog("loaded mounter: %s", volumeMounterFuse)
|
util.DefaultLog("loaded mounter: %s", volumeMounterFuse)
|
||||||
availableMounters = append(availableMounters, volumeMounterFuse)
|
availableMounters = append(availableMounters, volumeMounterFuse)
|
||||||
|
Loading…
Reference in New Issue
Block a user