mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 14:56:10 -04:00
Change message log level to debug to allow enabling through flag
We do not have a way to enable tracing through a command line argument so it did not make sense to have these messages set to trace. Ideally a trace flag should be added but it is not that straightforward with structopt. We could add a --log-level arg that allows you select a log level but this is verbose.
This commit is contained in:
parent
1a2b42ccd1
commit
3ba1ed2bcb
3 changed files with 4 additions and 3 deletions
|
@ -42,14 +42,14 @@ impl Transport for TorDialOnlyTransport {
|
|||
}
|
||||
|
||||
let dial_future = async move {
|
||||
tracing::trace!(address = %addr, "Establishing connection through Tor proxy");
|
||||
tracing::debug!(address = %addr, "Establishing connection through Tor proxy");
|
||||
|
||||
let stream =
|
||||
Socks5Stream::connect((Ipv4Addr::LOCALHOST, self.socks_port), address.to_string())
|
||||
.await
|
||||
.map_err(|e| io::Error::new(io::ErrorKind::ConnectionRefused, e))?;
|
||||
|
||||
tracing::trace!("Connection through Tor established");
|
||||
tracing::debug!("Connection through Tor established");
|
||||
|
||||
Ok(TcpStream(stream.into_inner()))
|
||||
};
|
||||
|
|
|
@ -58,7 +58,7 @@ async fn next_state(
|
|||
monero_wallet: &monero::Wallet,
|
||||
monero_receive_address: monero::Address,
|
||||
) -> Result<BobState> {
|
||||
tracing::trace!(%state, "Advancing state");
|
||||
tracing::debug!(%state, "Advancing state");
|
||||
|
||||
Ok(match state {
|
||||
BobState::Started {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue