diff --git a/internal/cephfs/snapshot.go b/internal/cephfs/snapshot.go index c7bfafff9..2e49a58cf 100644 --- a/internal/cephfs/snapshot.go +++ b/internal/cephfs/snapshot.go @@ -60,7 +60,7 @@ func createSnapshot(ctx context.Context, volOptions *volumeOptions, cr *util.Cre "ceph", args[:]...) if err != nil { - klog.Errorf(util.Log(ctx, "failed to create subvolume snapshot %s %s(%s) in fs %s"), string(snapID), string(volID), err, volOptions.FsName) + util.ErrorLog(ctx, "failed to create subvolume snapshot %s %s(%s) in fs %s", string(snapID), string(volID), err, volOptions.FsName) return err } return nil