Skip to content

Commit

Permalink
lnrpc: log channel point in coop close warning
Browse files Browse the repository at this point in the history
Use `Warnf` to include the chanpoint in the warning message instead of printing `%v` to the log
  • Loading branch information
alexbosworth authored and matheusd committed Feb 12, 2024
1 parent 3412130 commit 4ccd75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3309,7 +3309,7 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
// state. We log a warning that the channel will not be included
// in the now deprecated pending close channels field.
case channeldb.CooperativeClose:
rpcsLog.Warn("channel %v cooperatively closed and "+
rpcsLog.Warnf("channel %v cooperatively closed and "+
"in pending close state",
pendingClose.ChanPoint)

Expand Down

0 comments on commit 4ccd75b

Please sign in to comment.