mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 00:01:33 +00:00
Add logging to the examples (#138)
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
extern crate bytes;
|
||||
extern crate env_logger;
|
||||
extern crate futures;
|
||||
extern crate libp2p_secio as secio;
|
||||
extern crate libp2p_swarm as swarm;
|
||||
@ -39,6 +40,8 @@ use tokio_io::codec::BytesCodec;
|
||||
use websocket::WsConfig;
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
|
||||
// Determine which address to listen to.
|
||||
let listen_addr = env::args()
|
||||
.nth(1)
|
||||
|
Reference in New Issue
Block a user