Skip to content

Commit

Permalink
chore(webtransport-websys): Change logs to debug level
Browse files Browse the repository at this point in the history
When you enable Kademlia in a large network that uses multiple type of transports, then this log creates a very noisy console and makes meaningful logs hard to see.

We can also remove the log entirely if you prefer. Check: libp2p#4015 (comment), libp2p#4072, libp2p#4133

Pull-Request: libp2p#5396.
  • Loading branch information
oblique authored and TimTinkers committed Sep 14, 2024
1 parent b8953e0 commit 492f312
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ libp2p-webrtc-utils = { version = "0.2.0", path = "misc/webrtc-utils" }
libp2p-webrtc-websys = { version = "0.3.0-alpha", path = "transports/webrtc-websys" }
libp2p-websocket = { version = "0.43.0", path = "transports/websocket" }
libp2p-websocket-websys = { version = "0.3.2", path = "transports/websocket-websys" }
libp2p-webtransport-websys = { version = "0.2.1", path = "transports/webtransport-websys" }
libp2p-webtransport-websys = { version = "0.3.0", path = "transports/webtransport-websys" }
libp2p-yamux = { version = "0.45.1", path = "muxers/yamux" }
multiaddr = "0.18.1"
multihash = "0.19.1"
Expand Down
7 changes: 5 additions & 2 deletions transports/webtransport-websys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## 0.2.1
## 0.3.0

* Fix unhandled exceptions thrown when calling `Webtransport::close`.
See [PR 5390](https:/libp2p/rust-libp2p/pull/5390)
See [PR 5390](https:/libp2p/rust-libp2p/pull/5390).
* Change logs to debug level.
See [PR 5396](https:/libp2p/rust-libp2p/pull/5396).


## 0.2.0

Expand Down
2 changes: 1 addition & 1 deletion transports/webtransport-websys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-webtransport-websys"
edition = "2021"
rust-version = { workspace = true }
description = "WebTransport for libp2p under WASM environment"
version = "0.2.1"
version = "0.3.0"
authors = [
"Yiannis Marangos <[email protected]>",
"oblique <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion transports/webtransport-websys/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl libp2p_core::Transport for Transport {
fn dial(&mut self, addr: Multiaddr) -> Result<Self::Dial, TransportError<Self::Error>> {
let endpoint = Endpoint::from_multiaddr(&addr).map_err(|e| match e {
e @ Error::InvalidMultiaddr(_) => {
tracing::warn!("{}", e);
tracing::debug!("{}", e);
TransportError::MultiaddrNotSupported(addr)
}
e => TransportError::Other(e),
Expand Down

0 comments on commit 492f312

Please sign in to comment.