Skip to content

Commit

Permalink
adjust outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis committed Dec 29, 2021
1 parent 679c07d commit a73b6be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cluster/command/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ func newStartCmd() *cobra.Command {
log.Errorf("failed to set root password of TiDB database to '%s'", pwd)
return err
}
log.Warnf("The root password of TiDB database has been changed to '%s'.", color.HiYellowString(pwd))
log.Warnf("The root password of TiDB database has been changed.")
fmt.Printf("The new password is: '%s'.", color.HiYellowString(pwd)) // use fmt to avoid printing to audit log
log.Warnf("Copy and record it to somewhere safe, %s, and will not be stored.", color.HiRedString("it is only displayed once"))
log.Warnf("The generated password %s.", color.HiRedString("could NOT be get and shown again"))
}
Expand Down

0 comments on commit a73b6be

Please sign in to comment.