mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-28 19:31:34 +00:00
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 <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
d901697615
commit
ef9f75547a
1 changed files with 3 additions and 1 deletions
|
@ -480,7 +480,9 @@ func (n *Notary) newTxCallbackLoop() {
|
||||||
n.reqMtx.Unlock()
|
n.reqMtx.Unlock()
|
||||||
err := n.onTransaction(tx.tx)
|
err := n.onTransaction(tx.tx)
|
||||||
if err != nil {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue