Skip to content

Commit

Permalink
server: Make consistent use of svr peer stringer.
Browse files Browse the repository at this point in the history
This updates a couple of logging statements to use the serverPeer
instance instead of the embedded peer.Peer so they are consistent with
all of the other log statements.
  • Loading branch information
davecgh committed Feb 11, 2016
1 parent d759d1d commit d127ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ out:
case <-s.quit:
// Disconnect all peers on server shutdown.
state.forAllPeers(func(sp *serverPeer) {
srvrLog.Tracef("Shutdown peer %s", sp.Peer)
srvrLog.Tracef("Shutdown peer %s", sp)
sp.Disconnect()
})
break out
Expand All @@ -1663,7 +1663,7 @@ out:
if !state.NeedMoreOutbound() || len(cfg.ConnectPeers) > 0 ||
atomic.LoadInt32(&s.shutdown) != 0 {
state.forPendingPeers(func(sp *serverPeer) {
srvrLog.Tracef("Shutdown peer %s", sp.Peer)
srvrLog.Tracef("Shutdown peer %s", sp)
sp.Disconnect()
})
continue
Expand Down

0 comments on commit d127ad4

Please sign in to comment.