Skip to content

Commit

Permalink
cmd: don't use ':' in the default log file name (pingcap#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm authored Apr 16, 2020
1 parent b37ae8f commit f5c37f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
)

func timestampLogFileName() string {
return filepath.Join(os.TempDir(), "br.log."+time.Now().Format(time.RFC3339))
return filepath.Join(os.TempDir(), time.Now().Format("br.log.2006-01-02T15.04.05Z0700"))
}

// AddFlags adds flags to the given cmd.
Expand Down

0 comments on commit f5c37f3

Please sign in to comment.