server: use %x (hex encoding) when logging peer's pub key
This commit is contained in:
1 file changed
+5
-5
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user