Skip to content

Commit c3714c6

Browse files
committed
Monitor update logger scopes
1 parent b699c12 commit c3714c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3474,6 +3474,8 @@ macro_rules! handle_post_close_monitor_update {
34743474
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
34753475
$per_peer_state_lock: expr, $counterparty_node_id: expr, $channel_id: expr
34763476
) => {{
3477+
let _scope = crate::util::logger::LoggerScope::new("handle_post_close_monitor_update");
3478+
34773479
let (update_completed, all_updates_complete) = handle_new_monitor_update_internal(
34783480
$self,
34793481
&mut $peer_state.in_flight_monitor_updates,
@@ -3511,6 +3513,10 @@ macro_rules! handle_new_monitor_update_locked_actions_handled_by_caller {
35113513
(
35123514
$self: ident, $funding_txo: expr, $update: expr, $in_flight_monitor_updates: expr, $chan_context: expr
35133515
) => {{
3516+
let _scope = crate::util::logger::LoggerScope::new(
3517+
"handle_new_monitor_update_locked_actions_handled_by_caller",
3518+
);
3519+
35143520
let (update_completed, _all_updates_complete) = handle_new_monitor_update_internal(
35153521
$self,
35163522
$in_flight_monitor_updates,
@@ -3529,6 +3535,8 @@ macro_rules! handle_new_monitor_update {
35293535
$self: ident, $funding_txo: expr, $update: expr, $peer_state_lock: expr, $peer_state: expr,
35303536
$per_peer_state_lock: expr, $chan: expr
35313537
) => {{
3538+
let _scope = crate::util::logger::LoggerScope::new("handle_new_monitor_update");
3539+
35323540
let (update_completed, all_updates_complete) = handle_new_monitor_update_internal(
35333541
$self,
35343542
&mut $peer_state.in_flight_monitor_updates,

0 commit comments

Comments
 (0)