Skip to content

Commit

Permalink
Pass Debug enabled logger to WipeDrive
Browse files Browse the repository at this point in the history
WipeDrive funcs now log at either .Debug or .Error levels but we want to
see the same messages so need to change the LogLevel to Debug. Need a
new logger instead of current logger so the change only applies to
WipeDrive.
  • Loading branch information
mmlb committed Jul 9, 2024
1 parent f64b86d commit 953df13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/disk_wipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ func init() {
}).Fatal("failed find appropriate drive wiper")
}

logger = logrus.New()
logger.SetLevel(logrus.DebugLevel)
err = wiper.WipeDrive(ctx, logger, drive)
if err != nil {
l.Fatal("failed to wipe drive")
Expand Down

0 comments on commit 953df13

Please sign in to comment.