Skip to content

Commit

Permalink
fix: use timestamp for sim log file name
Browse files Browse the repository at this point in the history
colon not allowed on MacOS
  • Loading branch information
mmsqe committed Apr 21, 2024
1 parent 13cf11a commit e2b5886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/simulation/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (lw *StandardLogWriter) PrintLogs() {
func createLogFile() *os.File {
var f *os.File

fileName := fmt.Sprintf("%s.log", time.Now().Format("2006-01-02_15:04:05"))
fileName := fmt.Sprintf("%d.log", time.Now().UnixMilli())
folderPath := path.Join(os.ExpandEnv("$HOME"), ".simapp", "simulations")
filePath := path.Join(folderPath, fileName)

Expand Down

0 comments on commit e2b5886

Please sign in to comment.