Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Zimin <alexandr.zimin@flant.com>
  • Loading branch information
AleksZimin committed Mar 31, 2024
1 parent d9c1ef8 commit e1deb18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images/sds-local-volume-csi/driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (d *Driver) NodePublishVolume(ctx context.Context, request *csi.NodePublish
d.log.Trace("------------- NodePublishVolume --------------")

dev := fmt.Sprintf("/dev/%s/%s", request.GetVolumeContext()[internal.VGNameKey], request.VolumeId)
d.log.Info("dev = ", dev)
d.log.Info(fmt.Sprintf("dev = %s", dev))

var mountOptions []string
if request.GetReadonly() {
Expand All @@ -62,9 +62,9 @@ func (d *Driver) NodePublishVolume(ctx context.Context, request *csi.NodePublish
mountOptions = append(mountOptions, mnt.GetMountFlags()...)
}

d.log.Info("mountOptions = ", mountOptions)
d.log.Info("fsType = ", fsType)
d.log.Info("IsBlock = ", IsBlock)
d.log.Info(fmt.Sprintf("mountOptions = %s", mountOptions))
d.log.Info(fmt.Sprintf("fsType = %s", fsType))
d.log.Info(fmt.Sprintf("IsBlock = %t", IsBlock))

err := d.storeManager.Mount(dev, request.GetTargetPath(), IsBlock, fsType, false, mountOptions)
if err != nil {
Expand Down

0 comments on commit e1deb18

Please sign in to comment.