Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix few minor log string formatting #1873

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auction/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (am *Tracker) ProcessMessage(txn v1.Transaction) error {
case NoteDeposit:
auctionID := msg.SignedDeposit.Deposit.AuctionID
if _, ok := am.Auctions[auctionID]; !ok {
log.Warn("Invalid auction ID %v, dropping deposit message", auctionID)
log.Warnf("Invalid auction ID %v, dropping deposit message", auctionID)
continue
}

Expand Down
2 changes: 1 addition & 1 deletion network/wsNetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ func (wn *WebsocketNetwork) addPeer(peer *wsPeer) {
defer wn.peersLock.Unlock()
for _, p := range wn.peers {
if p == peer {
wn.log.Error("dup peer added %#v", peer)
wn.log.Errorf("dup peer added %#v", peer)
return
}
}
Expand Down
4 changes: 2 additions & 2 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ func (node *AlgorandFullNode) checkForParticipationKeys() {
case <-ticker.C:
err := node.loadParticipationKeys()
if err != nil {
node.log.Error("Could not refresh participation keys: %v", err)
node.log.Errorf("Could not refresh participation keys: %v", err)
}
case <-node.ctx.Done():
ticker.Stop()
Expand Down Expand Up @@ -744,7 +744,7 @@ func (node *AlgorandFullNode) loadParticipationKeys() error {
handle.Close()
if err == account.ErrUnsupportedSchema {
node.log.Infof("Loaded participation keys from storage: %s %s", part.Address(), info.Name())
node.log.Warn("loadParticipationKeys: not loading unsupported participation key: %s; renaming to *.old", info.Name())
node.log.Warnf("loadParticipationKeys: not loading unsupported participation key: %s; renaming to *.old", info.Name())
fullname := filepath.Join(genesisDir, info.Name())
renamedFileName := filepath.Join(fullname, ".old")
err = os.Rename(fullname, renamedFileName)
Expand Down