mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-23 12:30:41 -05:00
Improve network logging
This commit is contained in:
parent
f84cd001b5
commit
c25d5ff07e
12 changed files with 21 additions and 19 deletions
|
|
@ -1,3 +1,8 @@
|
|||
use crate::{
|
||||
monero,
|
||||
network::request_response::{AliceToBob, BobToAlice, Codec, Swap, TIMEOUT},
|
||||
protocol::bob,
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
use libp2p::{
|
||||
request_response::{
|
||||
|
|
@ -15,12 +20,6 @@ use std::{
|
|||
};
|
||||
use tracing::{debug, error};
|
||||
|
||||
use crate::{
|
||||
monero,
|
||||
network::request_response::{AliceToBob, BobToAlice, Codec, Swap, TIMEOUT},
|
||||
protocol::bob,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OutEvent {
|
||||
pub msg: bob::SwapRequest,
|
||||
|
|
@ -109,7 +108,7 @@ impl NetworkBehaviourEventProcess<RequestResponseEvent<BobToAlice, AliceToBob>>
|
|||
error!("Outbound failure: {:?}", error);
|
||||
}
|
||||
RequestResponseEvent::ResponseSent { .. } => {
|
||||
debug!("Alice has sent an Amounts response to Bob");
|
||||
debug!("Alice has sent a swap response to Bob");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue