Skip to content

Commit fa6ba86

Browse files
committed
feat: use infof level to print filter message
Signed-off-by: Jack Yu <jack.yu@suse.com>
1 parent 27bd8c6 commit fa6ba86

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/controller/blockdevice/scanner.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,23 +354,23 @@ func convertBlockDeviceListToMap(bdList *diskv1.BlockDeviceList) (map[string]*di
354354
func (s *Scanner) ApplyExcludeFiltersForDisk(disk *block.Disk) bool {
355355
if strings.HasPrefix(disk.Name, "dm-") {
356356
if _, err := utils.IsMultipathDevice(disk.Name); err == nil {
357-
logrus.Debugf("accept block device /dev/%s because it's a multipath device", disk.Name)
357+
logrus.Infof("accept block device /dev/%s because it's a multipath device", disk.Name)
358358
return false
359359
}
360360

361-
logrus.Debugf("block device /dev/%s ignored because it's a dm device (likely LHv2 volume)", disk.Name)
361+
logrus.Infof("block device /dev/%s ignored because it's a dm device (likely LHv2 volume)", disk.Name)
362362
return true
363363
}
364364

365365
for _, filter := range s.ExcludeFilters {
366366
if filter.ApplyDiskFilter(disk) {
367-
logrus.Debugf("block device /dev/%s ignored by %s", disk.Name, filter.Name)
367+
logrus.Infof("block device /dev/%s ignored by %s and rules: %s", disk.Name, filter.Name, filter.DiskFilter.Details())
368368
return true
369369
}
370370
}
371371

372372
if _, err := utils.IsManagedByMultipath(disk.Name); err == nil {
373-
logrus.Debugf("block device /dev/%s is managed by multipath device, ignored", disk.Name)
373+
logrus.Infof("block device /dev/%s is managed by multipath device, ignored", disk.Name)
374374
return true
375375
}
376376

0 commit comments

Comments
 (0)