From d76f660eb1a22d6d68a10b0d94b17e022771b211 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 12 Sep 2017 18:00:40 +0200 Subject: [PATCH] rpc: in logging for CloseChannel RPC, also log the force parameter --- rpcserver.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index cb879c4f..fbd8c8b7 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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