Skip to content

Commit

Permalink
Make error field on structlog a string instead of object
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-polygon committed Sep 25, 2024
1 parent ab0cee7 commit f1e3b77
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 @@ -144,9 +144,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 f1e3b77

Please sign in to comment.