ChanMgr: Log every conection attempt at debug.

This commit is contained in:
Nick Mathewson 2022-11-17 12:01:57 -05:00
parent 95081198e5
commit effd53510d
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ use tor_linkspec::OwnedChanTarget;
use tor_proto::channel::Channel;
pub use registry::TransportRegistry;
use tracing::debug;
/// An object that knows how to build `Channels` to `ChanTarget`s.
///
@ -58,6 +59,7 @@ where
type BuildSpec = OwnedChanTarget;
async fn build_channel(&self, target: &Self::BuildSpec) -> crate::Result<Self::Channel> {
debug!("Attempting to open a new channel to {target}");
self.connect_via_transport(target).await
}
}