server: use %x (hex encoding) when logging peer's pub key
This commit is contained in:
parent
e10388fc53
commit
947544753f
10
server.go
10
server.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user