Skip to content

Commit

Permalink
Merge pull request #6322 from multiversx/optimize-display-process-tx-…
Browse files Browse the repository at this point in the history
…details

Optimize "DisplayProcessTxDetails": Early exit if log level is not TRACE
  • Loading branch information
danidrasovean authored Jul 19, 2024
2 parents 317f2f6 + 8f24b6a commit a6d3565
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,10 @@ func DisplayProcessTxDetails(
txHash []byte,
addressPubkeyConverter core.PubkeyConverter,
) {
if log.GetLevel() > logger.LogTrace {
return
}

if !check.IfNil(accountHandler) {
account, ok := accountHandler.(state.UserAccountHandler)
if ok {
Expand Down

0 comments on commit a6d3565

Please sign in to comment.