Skip to content

Commit 3d03c1b

Browse files
mergify[bot]mmsqe
andauthored
fix: use timestamp for sim log file name (backport #20108) (#20112)
Co-authored-by: mmsqe <[email protected]>
1 parent 6f9f57c commit 3d03c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/simulation/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (lw *StandardLogWriter) PrintLogs() {
4949
func createLogFile() *os.File {
5050
var f *os.File
5151

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

0 commit comments

Comments
 (0)