WIP: Enhance tracing in Peer

- Add a bunch of events to Peer's async connection handling logic
- Use an EnvFilter to allow more control over the verbosity level of tracing on a per-module basis
- Wire up logging to emit trace events (we actually probably want to do this the other way around)

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Nathan Sobo 2022-05-12 09:58:17 -06:00
parent 85d9ac5b95
commit 9f6e82720d
8 changed files with 148 additions and 53 deletions

View file

@ -28,6 +28,7 @@ rand = "0.8"
rsa = "0.4"
serde = { version = "1", features = ["derive"] }
smol-timeout = "0.6"
tracing = "0.1.34"
zstd = "0.9"
[build-dependencies]