Skip to content

Commit d593cc0

Browse files
committed
Use WithChannelContext logger in unfunded branch in internal_shutdown
1 parent 0c31021 commit d593cc0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8564,7 +8564,8 @@ where
85648564
},
85658565
ChannelPhase::UnfundedInboundV1(_) | ChannelPhase::UnfundedOutboundV1(_) |
85668566
ChannelPhase::UnfundedInboundV2(_) | ChannelPhase::UnfundedOutboundV2(_) => {
8567-
log_error!(self.logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
8567+
let logger = WithChannelContext::from(&self.logger, phase.context(), None);
8568+
log_error!(logger, "Immediately closing unfunded channel {} as peer asked to cooperatively shut it down (which is unnecessary)", &msg.channel_id);
85688569
let mut chan = remove_channel_phase!(self, peer_state, chan_phase_entry);
85698570
finish_shutdown = Some(chan.context_mut().force_shutdown(false, ClosureReason::CounterpartyCoopClosedUnfundedChannel));
85708571
},

0 commit comments

Comments
 (0)