lnrpc: log channel point in coop close warning

Use `Warnf` to include the chanpoint in the warning message instead of printing `%v` to the log
This commit is contained in:
Alex Bosworth 2021-10-22 13:20:55 -07:00 committed by GitHub
parent cac8da819f
commit 6a1283cf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3312,7 +3312,7 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
// state. We log a warning that the channel will not be included // state. We log a warning that the channel will not be included
// in the now deprecated pending close channels field. // in the now deprecated pending close channels field.
case channeldb.CooperativeClose: case channeldb.CooperativeClose:
rpcsLog.Warn("channel %v cooperatively closed and "+ rpcsLog.Warnf("channel %v cooperatively closed and "+
"in pending close state", "in pending close state",
pendingClose.ChanPoint) pendingClose.ChanPoint)