Skip to content

Commit

Permalink
Comment out debug logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Sep 1, 2023
1 parent 118872a commit 6b04bf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/pkg/agent/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,26 +233,26 @@ func verifyDirectory(dir string) error {
func HasAllSSDs() bool {
block, err := ghw.Block()
if err != nil {
fmt.Fprintf(os.Stdout, "HasAllSSDs: ghw.Block() returned error: %s\n", err.Error())
//fmt.Fprintf(os.Stdout, "HasAllSSDs: ghw.Block() returned error: %s\n", err.Error())
return false
}

for _, disk := range block.Disks {
switch disk.DriveType {
case ghw.DRIVE_TYPE_FDD, ghw.DRIVE_TYPE_ODD:
// Floppy or optical drive; we don't care about these
fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a FDD or ODD\n", disk.Name)
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a FDD or ODD\n", disk.Name)
continue
case ghw.DRIVE_TYPE_SSD:
// SSDs
fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a SSD\n", disk.Name)
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a SSD\n", disk.Name)
continue
case ghw.DRIVE_TYPE_HDD:
// HDD (spinning hard disk)
fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a HDD\n", disk.Name)
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is a HDD\n", disk.Name)
return false
default:
fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is of unknown type\n", disk.Name)
//fmt.Fprintf(os.Stdout, "HasAllSSDs: %s is of unknown type\n", disk.Name)
return false
}
}
Expand Down

0 comments on commit 6b04bf4

Please sign in to comment.