From f1e3b773eb0b706240ae82c6f177e144fbf502ae Mon Sep 17 00:00:00 2001 From: einar-polygon Date: Wed, 25 Sep 2024 09:14:06 +0000 Subject: [PATCH] Make error field on structlog a string instead of object Resolves #12085 --- 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 7d80e80a62a..1ba2c40ca95 100644 --- a/eth/tracers/logger/json_stream.go +++ b/eth/tracers/logger/json_stream.go @@ -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()