Skip to content

Commit

Permalink
Type of error field in structlog logger differs from geth, alloy (#1…
Browse files Browse the repository at this point in the history
…2089) (#12241)

cherry-pick #12089 into E2

#12085

Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
  • Loading branch information
2 people authored and yperbasis committed Oct 24, 2024
1 parent 81ab987 commit aeded5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eth/tracers/logger/json_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ func (l *JsonStreamLogger) CaptureState(pc uint64, op vm.OpCode, gas, cost uint6
if err != nil {
l.stream.WriteMore()
l.stream.WriteObjectField("error")
l.stream.WriteObjectStart()
l.stream.WriteObjectEnd()
//l.stream.WriteString(err.Error())
l.stream.WriteString(err.Error())
}
if !l.cfg.DisableStack {
l.stream.WriteMore()
Expand Down

0 comments on commit aeded5e

Please sign in to comment.