Do not print debug messages by default
authorBryn M. Reeves <bmr@redhat.com>
Fri, 18 Jan 2013 17:12:04 +0000 (17:12 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Fri, 18 Jan 2013 17:12:04 +0000 (17:12 +0000)
commitac53c538d1f9f9d2a37162f67e89b401763b86e5
tree2d0c0024aa064244a2e3806fd21914c97e05e4d0
parentc28646439ef0c7b7814343b525343783d17b05e6
Do not print debug messages by default

Users can select debug output by setting the BA_DEBUG environment
variable:

  [root@rhel6-vm1 ~]# blkdevalias deletedisk DSK1
  Removing wwid map disk "DSK1":                                  [  OK  ]
  [root@rhel6-vm1 ~]# BA_DEBUG="yes" blkdevalias createdisk DSK1 /dev/sda
  ba_createdisk: DEV="/dev/sda" ALIAS="DSK1"
  ba_scsi_id: getting ID for device /dev/sda
  ba_scsi_id: calling "/sbin/scsi_id -g -u /dev/sda"
  ba_createdisk: WWID="0QEMU_QEMU_HARDDISK_drive-scsi0-0-0"
  ba_get_partnum: /dev/sda
  ba_createdisk: PART="0"
  ba_add_wwid_mapping: WWID="0QEMU_QEMU_HARDDISK_drive-scsi0-0-0" ALIAS="DSK1" TYPE="sd" PART="0"
blkdevalias