rpc: in logging for CloseChannel RPC, also log the force parameter

This commit is contained in:
Olaoluwa Osuntokun 2017-09-12 18:00:40 +02:00
parent 9a93f83370
commit d76f660eb1
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -712,14 +712,16 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
}
chanPoint := wire.NewOutPoint(txid, index)
rpcsLog.Tracef("[closechannel] request for ChannelPoint(%v)",
chanPoint)
rpcsLog.Tracef("[closechannel] request for ChannelPoint(%v), force=%v",
chanPoint, force)
var (
updateChan chan *lnrpc.CloseStatusUpdate
errChan chan error
)
// TODO(roasbeef): if force and peer online then don't force?
// If a force closure was requested, then we'll handle all the details
// around the creation and broadcast of the unilateral closure
// transaction here rather than going to the switch as we don't require