Skip to content

Commit

Permalink
toolrecord files: remove the timestamp from the filename (#4540)
Browse files Browse the repository at this point in the history
Co-authored-by: sumeet patil <[email protected]>
  • Loading branch information
2 people authored and andrew-kireev committed Oct 17, 2023
1 parent ab08633 commit 3eb1393
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/toolrecord/toolrecord.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ func New(fileUtils fileWriteUtils, workspace, toolName, toolInstance string) *To

tr.workspace = workspace

now := time.Now().UTC()
reportFileName := filepath.Join(workspace,
"toolruns",
"toolrun_"+toolName+"_"+
now.Format("20060102150405")+
".json")
"toolrun_"+toolName+"_all.json")
tr.reportFileName = reportFileName
// keep the timestamp inside the object too

// keep a timestamp inside all files
now := time.Now().UTC()
var otr = &tr
otr.AddContext("generatedOnUtc", now.Format("20060102150405"))
return otr
Expand Down

0 comments on commit 3eb1393

Please sign in to comment.