Skip to content

Commit

Permalink
[ISSUE-1246]: add drive field to the log
Browse files Browse the repository at this point in the history
Signed-off-by: Dawid Korzepa <[email protected]>
  • Loading branch information
korzepadawid committed Nov 27, 2024
1 parent faed677 commit 53ba995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/node/volumemgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ func (m *VolumeManager) isRootMountpoint(devs []lsblk.BlockDevice) bool {

// addVolumeStatusAnnotation add annotation with volume status to drive
func (m *VolumeManager) addVolumeStatusAnnotation(drive *drivecrd.Drive, volumeName, status string) {
m.log.Infof("Adding volume status annotation %s: %s", volumeName, status)
m.log.WithField("drive", drive.Name).Infof("Adding volume status annotation %s: %s", volumeName, status)
annotationKey := fmt.Sprintf("%s/%s", apiV1.DriveAnnotationVolumeStatusPrefix, volumeName)
// init map if empty
if drive.Annotations == nil {
Expand Down

0 comments on commit 53ba995

Please sign in to comment.