Closed einar-polygon closed 1 month ago
@AlexeyAkhunov seems to be the original committer of those lines so tagging him. Perhaps he knows something I don't about why the line was already there, but commented out (//l.stream.WriteString(err.Error())
).
System information
Commit hash: c293883ec039ebcc9bb7bbe85807cabee828b4bc
Expected behaviour
The field
error
should probably be logged as a string to be compatible with Geth, Alloy.Actual behaviour
The field
error
is logged as an object containing a string.Steps to reproduce the behaviour
I don't know of a
tx_id
on a public chain, whose logs contains theerror
field, but here is the command I used to confirm this issue:Source
https://github.com/erigontech/erigon/blob/c293883ec039ebcc9bb7bbe85807cabee828b4bc/eth/tracers/logger/json_stream.go#L128-L131
Suggested fix