mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
Add logging to the examples (#138)
This commit is contained in:
@ -6,7 +6,7 @@ authors = ["pierre <pierre.krieger1708@gmail.com>"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
bigint = "4.2"
|
bigint = "4.2"
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
env_logger = "0.5.3"
|
env_logger = "0.5.4"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
multiaddr = "0.2"
|
multiaddr = "0.2"
|
||||||
multiplex = { path = "../multiplex-rs" }
|
multiplex = { path = "../multiplex-rs" }
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
|
extern crate env_logger;
|
||||||
extern crate futures;
|
extern crate futures;
|
||||||
extern crate libp2p_secio as secio;
|
extern crate libp2p_secio as secio;
|
||||||
extern crate libp2p_swarm as swarm;
|
extern crate libp2p_swarm as swarm;
|
||||||
@ -39,6 +40,8 @@ use tokio_io::codec::BytesCodec;
|
|||||||
use websocket::WsConfig;
|
use websocket::WsConfig;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
env_logger::init();
|
||||||
|
|
||||||
// Determine which address to dial.
|
// Determine which address to dial.
|
||||||
let target_addr = env::args()
|
let target_addr = env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
|
extern crate env_logger;
|
||||||
extern crate futures;
|
extern crate futures;
|
||||||
extern crate libp2p_secio as secio;
|
extern crate libp2p_secio as secio;
|
||||||
extern crate libp2p_swarm as swarm;
|
extern crate libp2p_swarm as swarm;
|
||||||
@ -39,6 +40,8 @@ use tokio_io::codec::BytesCodec;
|
|||||||
use websocket::WsConfig;
|
use websocket::WsConfig;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
env_logger::init();
|
||||||
|
|
||||||
// Determine which address to listen to.
|
// Determine which address to listen to.
|
||||||
let listen_addr = env::args()
|
let listen_addr = env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
|
extern crate env_logger;
|
||||||
extern crate futures;
|
extern crate futures;
|
||||||
extern crate libp2p_ping as ping;
|
extern crate libp2p_ping as ping;
|
||||||
extern crate libp2p_secio as secio;
|
extern crate libp2p_secio as secio;
|
||||||
@ -36,6 +37,8 @@ use tcp::TcpConfig;
|
|||||||
use tokio_core::reactor::Core;
|
use tokio_core::reactor::Core;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
env_logger::init();
|
||||||
|
|
||||||
// Determine which address to dial.
|
// Determine which address to dial.
|
||||||
let target_addr = env::args()
|
let target_addr = env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
|
Reference in New Issue
Block a user