Skip to content

Commit

Permalink
Add err logging to BroadcaseTxFromWatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
anarcher committed Nov 27, 2018
1 parent d86edf9 commit 2d12e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node/runner/checker_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func BroadcastTransactionFromWatcher(c common.Checker, args ...interface{}) erro
if checker.Conf.WatcherMode == false {
return nil
}
checker.Log.Debug("transaction from client will be sended")
checker.Log.Debug("transaction from client will be sent")

cm := checker.Consensus.ConnectionManager()
var addrs []string
Expand All @@ -207,7 +207,7 @@ func BroadcastTransactionFromWatcher(c common.Checker, args ...interface{}) erro
checker.Log.Info("send tx to node", "node", a, "tx", checker.Transaction.GetHash())
break
}
checker.Log.Debug("failure to send tx to node", "node", a, "tx", checker.Transaction.GetHash())
checker.Log.Debug("failure to send tx to node", "node", a, "err", err, "tx", checker.Transaction.GetHash())
}
return err
}

0 comments on commit 2d12e99

Please sign in to comment.