WIP - Logging - Log peer id in muxer

This commit is contained in:
Daniel Karzel 2021-05-26 10:02:52 +10:00
parent 4c310c3a6c
commit 17a4ca0ebb
No known key found for this signature in database
GPG Key ID: 30C3FC2E438ADB6E

View File

@ -34,7 +34,10 @@ pub fn build_clear_net(id_keys: &identity::Keypair) -> Result<SwapTransport> {
MplexConfig::new(),
))
.timeout(Duration::from_secs(20))
.map(|(peer, muxer), _| (peer, StreamMuxerBox::new(muxer)))
.map(|(peer, muxer), _| {
tracing::debug!("Muxer peer id: {}", peer);
(peer, StreamMuxerBox::new(muxer))
})
.boxed();
Ok(transport)