Add some logging if the timeouts stream ends (#414)

This commit is contained in:
Pierre Krieger
2018-07-24 15:54:19 +02:00
committed by Gav Wood
parent 2fdb9cbc29
commit e65672575f
@@ -546,6 +546,10 @@ fn init_thread(
}, timer_token);
Ok(())
}
})
.then(|val| {
warn!(target: "sub-libp2p", "Timeouts stream closed unexpectedly: {:?}", val);
val
});
// Start the process of periodically discovering nodes to connect to.