From ef9f75547a7d90fd19b1c47ce689b00c2c8678af Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 12 Jan 2024 12:23:45 +0300 Subject: [PATCH] services: improve notary service logging Let the user know whether it's main or fallback transaction that failed to be relayed to the network. Signed-off-by: Anna Shaleva --- pkg/services/notary/notary.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/services/notary/notary.go b/pkg/services/notary/notary.go index 55ba8748d..7593c5a2a 100644 --- a/pkg/services/notary/notary.go +++ b/pkg/services/notary/notary.go @@ -480,7 +480,9 @@ func (n *Notary) newTxCallbackLoop() { n.reqMtx.Unlock() err := n.onTransaction(tx.tx) if err != nil { - n.Config.Log.Error("new transaction callback finished with error", zap.Error(err)) + n.Config.Log.Error("new transaction callback finished with error", + zap.Error(err), + zap.Bool("is main", isMain)) continue }