From 1fa4974534203aae2c4ae2444cb7b63641aa0cbd Mon Sep 17 00:00:00 2001 From: Awbrey Hughlett Date: Wed, 13 Nov 2024 09:34:10 -0600 Subject: [PATCH] only write batch for batch calls --- core/services/relay/evm/read/errors.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/services/relay/evm/read/errors.go b/core/services/relay/evm/read/errors.go index e84b2f4d653..8cc7724064c 100644 --- a/core/services/relay/evm/read/errors.go +++ b/core/services/relay/evm/read/errors.go @@ -44,9 +44,12 @@ func (e ErrRead) Error() string { var builder strings.Builder builder.WriteString("[read error]") - builder.WriteString(fmt.Sprintf(" batch: %t;", e.Batch)) builder.WriteString(fmt.Sprintf(" err: %s;", e.Err.Error())) + if e.Batch { + builder.WriteString(" batch;") + } + if e.Detail != nil { builder.WriteString(fmt.Sprintf(" block: %s;", e.Detail.Block)) builder.WriteString(fmt.Sprintf(" address: %s;", e.Detail.Address))