Add logging to the examples (#138)

This commit is contained in:
Pierre Krieger
2018-03-15 16:56:55 +01:00
committed by GitHub
parent f81cc08027
commit 064706be39
4 changed files with 10 additions and 1 deletions

View File

@ -19,6 +19,7 @@
// DEALINGS IN THE SOFTWARE.
extern crate bytes;
extern crate env_logger;
extern crate futures;
extern crate libp2p_ping as ping;
extern crate libp2p_secio as secio;
@ -36,6 +37,8 @@ use tcp::TcpConfig;
use tokio_core::reactor::Core;
fn main() {
env_logger::init();
// Determine which address to dial.
let target_addr = env::args()
.nth(1)