Improve debug text for swap resume

This commit is contained in:
Lorenzo Tucci 2023-11-06 22:18:06 +02:00
parent 28b0e06f78
commit f9912b66da
No known key found for this signature in database
GPG key ID: D98C4FA2CDF590A0

View file

@ -551,20 +551,20 @@ impl Request {
event_loop_result = handle => {
match event_loop_result {
Ok(_) => {
tracing::debug!(%swap_id, "EventLoop completed")
tracing::debug!(%swap_id, "EventLoop completed during swap resume")
}
Err(error) => {
tracing::error!(%swap_id, "EventLoop failed: {:#}", error)
tracing::error!(%swap_id, "EventLoop failed during swap resume: {:#}", error)
}
}
},
swap_result = bob::run(swap) => {
match swap_result {
Ok(state) => {
tracing::debug!(%swap_id, state=%state, "Swap completed")
tracing::debug!(%swap_id, state=%state, "Swap completed after resuming")
}
Err(error) => {
tracing::error!(%swap_id, "Failed to complete swap: {:#}", error)
tracing::error!(%swap_id, "Failed to resume swap: {:#}", error)
}
}