Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
rpcwebsocket: Fix formatted error logging. (decred#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolan authored May 17, 2017
1 parent 39734da commit 91d869d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rpcwebsocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ func (m *wsNotificationManager) notifyBlockConnected(clients map[chan struct{}]*
// Marshal and queue notification.
marshalledJSON, err := dcrjson.MarshalCmd(nil, &ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal block connected "+
rpcsLog.Errorf("Failed to marshal block connected "+
"notification: %v", err)
continue
}
Expand Down Expand Up @@ -826,7 +826,7 @@ func (*wsNotificationManager) notifyBlockDisconnected(clients map[chan struct{}]
}
marshalledJSON, err := dcrjson.MarshalCmd(nil, &ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal block disconnected "+
rpcsLog.Errorf("Failed to marshal block disconnected "+
"notification: %v", err)
return
}
Expand All @@ -851,7 +851,7 @@ func (m *wsNotificationManager) notifyReorganization(clients map[chan struct{}]*
int32(rd.NewHeight))
marshalledJSON, err := dcrjson.MarshalCmd(nil, ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal reorganization "+
rpcsLog.Errorf("Failed to marshal reorganization "+
"notification: %v", err)
return
}
Expand Down Expand Up @@ -889,7 +889,7 @@ func (*wsNotificationManager) notifyWinningTickets(

marshalledJSON, err := dcrjson.MarshalCmd(nil, ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal winning tickets notification: "+
rpcsLog.Errorf("Failed to marshal winning tickets notification: "+
"%v", err)
return
}
Expand Down Expand Up @@ -931,8 +931,8 @@ func (*wsNotificationManager) notifySpentAndMissedTickets(

marshalledJSON, err := dcrjson.MarshalCmd(nil, ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal spent and missed tickets notification: "+
"%v", err)
rpcsLog.Errorf("Failed to marshal spent and missed tickets "+
"notification: %v", err)
return
}

Expand Down Expand Up @@ -982,7 +982,7 @@ func (*wsNotificationManager) notifyNewTickets(clients map[chan struct{}]*wsClie

marshalledJSON, err := dcrjson.MarshalCmd(nil, ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal new tickets notification: "+
rpcsLog.Errorf("Failed to marshal new tickets notification: "+
"%v", err)
return
}
Expand All @@ -1004,7 +1004,7 @@ func (*wsNotificationManager) notifyStakeDifficulty(

marshalledJSON, err := dcrjson.MarshalCmd(nil, ntfn)
if err != nil {
rpcsLog.Error("Failed to marshal stake difficulty notification: "+
rpcsLog.Errorf("Failed to marshal stake difficulty notification: "+
"%v", err)
return
}
Expand Down

0 comments on commit 91d869d

Please sign in to comment.