Skip to content

Commit

Permalink
add swap events debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Jan 29, 2024
1 parent f66529e commit 9206ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mm2src/mm2_main/src/lp_swap/maker_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,7 @@ pub async fn run_maker_swap(swap: RunMakerSwapInput, ctx: MmArc) {
}

status.status(swap_tags!(), &event.status_str());
debug!("[swap uuid={uuid_str}] {event:?}");
running_swap.apply_event(event);
}
match res.0 {
Expand Down
1 change: 1 addition & 0 deletions mm2src/mm2_main/src/lp_swap/taker_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ pub async fn run_taker_swap(swap: RunTakerSwapInput, ctx: MmArc) {
}

status.status(&[&"swap", &("uuid", uuid.as_str())], &event.status_str());
debug!("[swap uuid={uuid}] {event:?}");
running_swap.apply_event(event);
}
match res.0 {
Expand Down

0 comments on commit 9206ca2

Please sign in to comment.