Skip to content

Commit

Permalink
moved log to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
raduchis committed Apr 24, 2024
1 parent cba7820 commit 6ceee03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process/block/preprocess/smartContractResults.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (scr *smartContractResults) ProcessBlockTransactions(
totalGasConsumedInSelfShard: scr.getTotalGasConsumed(),
}

fileName := fmt.Sprintf("validator-cpu-profile-%d-%d.pprof", time.Now().Unix(), len(body.MiniBlocks))
fileName := fmt.Sprintf("logs/validator-cpu-profile-%d-%d.pprof", time.Now().Unix(), len(body.MiniBlocks))
f, err := os.Create(fileName)
if err != nil {
log.Error("could not create CPU profile", "error", err)
Expand Down Expand Up @@ -597,7 +597,7 @@ func (scr *smartContractResults) ProcessMiniBlock(

//TODO: add pprof for leader, when len(miniBlockScrs) > 0

fileName := fmt.Sprintf("leader-cpu-profile-%d-%d.pprof", time.Now().Unix(), len(miniBlockScrs))
fileName := fmt.Sprintf("logs/leader-cpu-profile-%d-%d.pprof", time.Now().Unix(), len(miniBlockScrs))
f, err := os.Create(fileName)
if err != nil {
log.Error("could not create CPU profile", "error", err)
Expand Down

0 comments on commit 6ceee03

Please sign in to comment.