From e31d2c37a9491b16cae4499b8fe9756558bc36b6 Mon Sep 17 00:00:00 2001 From: Peter Jankuliak Date: Tue, 24 Sep 2024 15:49:44 +0200 Subject: [PATCH 1/2] Add RUST_LOG instructions to README.md --- README.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bf0a104f5..106fec485 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,32 @@ Build The results will then be found in the `./target/release/` directory. -## Testing +## Debugging tests + +Use the `tracing::[level]!` macros for easier debugging. + +The format for [`RUST_LOG`](https://docs.rs/env_logger/latest/env_logger/) is either + +``` +RUST_LOG=[level] +``` + +or + +``` +RUST_LOG=[target]=[level],[target]=[level],... +``` + +Where `level` can be one of `error`, `warn`, `info`, `debug` or `trace`. The +`target` can be obtained from the list given by `cargo test --package` and by +replacing dashes (`-`) with underscores (`_`) in the package names. + + Ouisync uses +[`tracing_subscriber`](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html) +to include information where individual output lines originated from. To enable +this functionality, set the `level` to either `info`, `debug` or `trace`. + +## Testing help acknowlegement This project is tested with BrowserStack. From 869ee069f9870f21b8c84953edcd89f43bee1a00 Mon Sep 17 00:00:00 2001 From: Peter Jankuliak Date: Mon, 30 Sep 2024 15:02:14 +0200 Subject: [PATCH 2/2] Fix `StunClients` resolve ext address not finishing --- lib/src/network/stun.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/network/stun.rs b/lib/src/network/stun.rs index e2f90d96b..d8545b148 100644 --- a/lib/src/network/stun.rs +++ b/lib/src/network/stun.rs @@ -148,6 +148,7 @@ where } } + drop(tasks_tx); future::pending::<()>().await; };