From aeded5e3dd6b7f7a55455890ce3f45e4e4c08b9f Mon Sep 17 00:00:00 2001 From: milen <94537774+taratorio@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:00:27 +0100 Subject: [PATCH] Type of error field in structlog logger differs from geth, alloy (#12089) (#12241) cherry-pick https://github.com/erigontech/erigon/pull/12089 into E2 https://github.com/erigontech/erigon/issues/12085 Co-authored-by: Alex Sharov --- eth/tracers/logger/json_stream.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eth/tracers/logger/json_stream.go b/eth/tracers/logger/json_stream.go index d6c87525321..51794956f88 100644 --- a/eth/tracers/logger/json_stream.go +++ b/eth/tracers/logger/json_stream.go @@ -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()