Skip to content

Commit d7382cf

Browse files
committed
remove logger poc
1 parent e508636 commit d7382cf

File tree

2 files changed

+280
-759
lines changed

2 files changed

+280
-759
lines changed

lightning/src/ln/channel.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,20 @@ where
10061006
}
10071007
}
10081008

1009+
pub fn span_from_context<S: Deref>(
1010+
context: &ChannelContext<S>, payment_hash: Option<PaymentHash>,
1011+
) -> tracing::Span
1012+
where
1013+
S::Target: SignerProvider,
1014+
{
1015+
tracing::info_span!(
1016+
"channel",
1017+
peer_id = %context.counterparty_node_id,
1018+
channel_id = %context.channel_id,
1019+
payment_hash = %payment_hash
1020+
)
1021+
}
1022+
10091023
macro_rules! secp_check {
10101024
($res: expr, $err: expr) => {
10111025
match $res {

0 commit comments

Comments
 (0)