Remove punctuation from end of logging for consistency.

This commit is contained in:
Josh Rickmar 2014-01-14 16:41:22 -05:00
parent 477b733ed9
commit 86600a0356

View file

@ -335,9 +335,9 @@ func handleRescan(s *rpcServer, icmd btcjson.Cmd, c handlerChans) (interface{},
} }
if len(cmd.Addresses) == 1 { if len(cmd.Addresses) == 1 {
rpcsLog.Info("Beginning rescan for 1 address.") rpcsLog.Info("Beginning rescan for 1 address")
} else { } else {
rpcsLog.Infof("Beginning rescan for %v addresses.", rpcsLog.Infof("Beginning rescan for %v addresses",
len(cmd.Addresses)) len(cmd.Addresses))
} }
@ -412,7 +412,7 @@ func rescanBlock(s *rpcServer, cmd *btcws.RescanCmd, c handlerChans, blk *btcuti
if txReply == nil { if txReply == nil {
txReplyList, err := s.server.db.FetchTxBySha(tx.Sha()) txReplyList, err := s.server.db.FetchTxBySha(tx.Sha())
if err != nil { if err != nil {
rpcsLog.Errorf("Tx Sha %v not found by db.", tx.Sha()) rpcsLog.Errorf("Tx Sha %v not found by db", tx.Sha())
continue txouts continue txouts
} }
for i := range txReplyList { for i := range txReplyList {
@ -671,7 +671,7 @@ func (s *rpcServer) websocketJSONHandler(r chan *btcjson.Reply, c handlerChans,
func (s *rpcServer) NotifyBlockConnected(block *btcutil.Block) { func (s *rpcServer) NotifyBlockConnected(block *btcutil.Block) {
hash, err := block.Sha() hash, err := block.Sha()
if err != nil { if err != nil {
rpcsLog.Error("Bad block; connected block notification dropped.") rpcsLog.Error("Bad block; connected block notification dropped")
return return
} }
@ -707,7 +707,7 @@ func (s *rpcServer) NotifyBlockConnected(block *btcutil.Block) {
func (s *rpcServer) NotifyBlockDisconnected(block *btcutil.Block) { func (s *rpcServer) NotifyBlockDisconnected(block *btcutil.Block) {
hash, err := block.Sha() hash, err := block.Sha()
if err != nil { if err != nil {
rpcsLog.Error("Bad block; connected block notification dropped.") rpcsLog.Error("Bad block; connected block notification dropped")
return return
} }
@ -794,7 +794,7 @@ func (s *rpcServer) NotifyForTxOuts(tx *btcutil.Tx, block *btcutil.Block) {
if block != nil { if block != nil {
blkhash, err := block.Sha() blkhash, err := block.Sha()
if err != nil { if err != nil {
rpcsLog.Error("Error getting block sha; dropping Tx notification.") rpcsLog.Error("Error getting block sha; dropping Tx notification")
break break
} }
ntfn.BlockHeight = int32(block.Height()) ntfn.BlockHeight = int32(block.Height())