diff --git a/Cargo.lock b/Cargo.lock index ba8637a..dca26ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -432,7 +432,7 @@ dependencies = [ [[package]] name = "chat-example" -version = "0.1.0" +version = "0.2.0" dependencies = [ "clap", "eyre", diff --git a/examples/chat/Cargo.toml b/examples/chat/Cargo.toml index 0638f8f..a0895df 100644 --- a/examples/chat/Cargo.toml +++ b/examples/chat/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chat-example" -version = "0.1.0" +version = "0.2.0" authors = ["Calimero Limited "] edition = "2021" repository = "https://github.com/calimero-network/boot-node" @@ -10,7 +10,6 @@ license = "MIT OR Apache-2.0" clap = { version = "4.5.4", features = ["derive", "env"] } eyre = "0.6.12" libp2p = { version = "0.53.2", features = [ - "autonat", "dcutr", "dns", "gossipsub", diff --git a/examples/chat/src/main.rs b/examples/chat/src/main.rs index 195cccb..f2fdb98 100644 --- a/examples/chat/src/main.rs +++ b/examples/chat/src/main.rs @@ -55,9 +55,9 @@ enum Mode { #[tokio::main] async fn main() -> eyre::Result<()> { tracing_subscriber::registry() - // "info,chat_example=debug,{}", + // "info,chat_example=debug,libp2p_mdns=warn,{}", .with(EnvFilter::builder().parse(format!( - "info,chat_example=info,libp2p_mdns=warn,{}", + "info,libp2p_mdns=warn,{}", std::env::var("RUST_LOG").unwrap_or_default() ))?) .with(tracing_subscriber::fmt::layer()) diff --git a/examples/chat/src/network/events/relay.rs b/examples/chat/src/network/events/relay.rs index 5c00137..cb5022e 100644 --- a/examples/chat/src/network/events/relay.rs +++ b/examples/chat/src/network/events/relay.rs @@ -6,7 +6,7 @@ use super::{EventHandler, EventLoop, RelayReservationState}; impl EventHandler for EventLoop { async fn handle(&mut self, event: relay::client::Event) { - debug!("{}: {:?}", "relay_client".yellow(), event); + debug!("{}: {:?}", "relay".yellow(), event); match event { relay::client::Event::ReservationReqAccepted { relay_peer_id, .. } => {