Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Oct 2, 2024
2 parents ab3f013 + 869ee06 commit e09656a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

1 change: 1 addition & 0 deletions lib/src/network/stun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ where
}
}

drop(tasks_tx);
future::pending::<()>().await;
};

Expand Down

0 comments on commit e09656a

Please sign in to comment.