diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2021-02-14 00:31:14 -0500 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2021-02-14 00:31:14 -0500 |
commit | 548304fd69614479790c36ddb0615599df0130b2 (patch) | |
tree | db0534ba6575e9ad897f6554ff41cddfdcc4ca7c /ipfs-api/examples/ping_peer.rs | |
parent | 5fe7c4f8bae147db49aaa275fe540b2b4667b3a1 (diff) |
add tracing
Diffstat (limited to 'ipfs-api/examples/ping_peer.rs')
-rw-r--r-- | ipfs-api/examples/ping_peer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipfs-api/examples/ping_peer.rs b/ipfs-api/examples/ping_peer.rs index 08b0496..eddc3ba 100644 --- a/ipfs-api/examples/ping_peer.rs +++ b/ipfs-api/examples/ping_peer.rs @@ -15,6 +15,8 @@ use ipfs_api::{response::PingResponse, IpfsClient}; #[cfg_attr(feature = "with-actix", actix_rt::main)] #[cfg_attr(feature = "with-hyper", tokio::main)] async fn main() { + tracing_subscriber::fmt::init(); + eprintln!("connecting to localhost:5001..."); let client = IpfsClient::default(); |