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
1 changed files with 5 additions and 5 deletions

View File

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