server: use %x (hex encoding) when logging peer's pub key

This commit is contained in:
Olaoluwa Osuntokun 2017-08-10 21:17:04 -07:00
parent e10388fc53
commit 947544753f
No known key found for this signature in database
GPG Key ID: 3D0A94DB79743DF5

@ -164,12 +164,12 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
select {
case peer.localCloseChanReqs <- request:
srvrLog.Infof("local close channel request "+
"delivered to peer: %v", string(pubKey))
srvrLog.Infof("Local close channel request "+
"delivered to peer: %x", pubKey[:])
case <-peer.quit:
srvrLog.Errorf("unable to deliver local close "+
"channel request to peer %v, err: %v",
string(pubKey), err)
srvrLog.Errorf("Unable to deliver local close "+
"channel request to peer %x, err: %v",
pubKey[:], err)
}
},
UpdateTopology: func(msg *lnwire.ChannelUpdate) error {