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
…2443)

Cherry pick #12241 into `release/2.61`

Co-authored-by: milen <94537774+taratorio@users.noreply.github.com>
Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
  • Loading branch information
3 people authored Oct 24, 2024
1 parent 81ab987 commit 1ca1a7c
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 1ca1a7c

Please sign in to comment.