diff --git a/internal/cephfs/volume.go b/internal/cephfs/volume.go index 355d5d18c..c60a11667 100644 --- a/internal/cephfs/volume.go +++ b/internal/cephfs/volume.go @@ -225,7 +225,7 @@ func resizeVolume(ctx context.Context, volOptions *volumeOptions, cr *util.Crede } // Incase the error is other than invalid command return error to the caller. if !strings.Contains(err.Error(), ErrInvalidCommand.Error()) { - klog.Errorf(util.Log(ctx, "failed to resize subvolume %s(%s) in fs %s"), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to resize subvolume %s(%s) in fs %s", string(volID), err, volOptions.FsName) return err } }