Skip to content

Commit

Permalink
remove secrets from logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Jan 31, 2024
1 parent 67ba75f commit 24d2302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func config(ctx *cli.Context) error {
return err
}
if len(ctx.LocalFlagNames()) == 0 {
format.RemoveSecret()
fmt.Println(format)
return nil
}
Expand Down
1 change: 1 addition & 0 deletions cmd/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ func format(c *cli.Context) error {
}
logger.Fatalf("format: %s", err)
}
format.RemoveSecret()
logger.Infof("Volume is formatted as %s", format)
return nil
}

0 comments on commit 24d2302

Please sign in to comment.