summaryrefslogtreecommitdiffstats
path: root/ipfs-api/examples/add_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-api/examples/add_file.rs')
-rw-r--r--ipfs-api/examples/add_file.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipfs-api/examples/add_file.rs b/ipfs-api/examples/add_file.rs
index 5917884..a19e4a2 100644
--- a/ipfs-api/examples/add_file.rs
+++ b/ipfs-api/examples/add_file.rs
@@ -14,6 +14,8 @@ use std::fs::File;
#[cfg_attr(feature = "with-actix", actix_rt::main)]
#[cfg_attr(feature = "with-hyper", tokio::main)]
async fn main() {
+ tracing_subscriber::fmt::init();
+
eprintln!("note: this must be run in the root of the project repository");
eprintln!("connecting to localhost:5001...");