server: properly format peer pubkey in NotifyWhenOnline logging msg

Fixes #978.
This commit is contained in:
Olaoluwa Osuntokun 2018-03-30 13:14:22 -07:00
parent c5c23eb833
commit 90636b49b2

@ -1112,7 +1112,8 @@ func (s *server) NotifyWhenOnline(peer *btcec.PublicKey,
_, ok := s.peersByPub[pubStr]
if ok {
// Connected, can return early.
srvrLog.Debugf("Notifying that peer %v is online", pubStr)
srvrLog.Debugf("Notifying that peer %x is online",
peer.SerializeCompressed())
close(connectedChan)
return
}