From 9be256e1c48ad7a5d893079acda43c8fc9caede6 Mon Sep 17 00:00:00 2001 From: Ross Younger Date: Sat, 9 Nov 2024 15:58:43 +1300 Subject: [PATCH] feat: enable rustls logging, gated by rustls-log feature flag --- quinn-proto/Cargo.toml | 2 ++ quinn/Cargo.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/quinn-proto/Cargo.toml b/quinn-proto/Cargo.toml index 69527ce4c..6267ffe74 100644 --- a/quinn-proto/Cargo.toml +++ b/quinn-proto/Cargo.toml @@ -30,6 +30,8 @@ ring = ["dep:ring"] platform-verifier = ["dep:rustls-platform-verifier"] # Configure `tracing` to log events via `log` if no `tracing` subscriber exists. log = ["tracing/log"] +# Enable rustls logging +rustls-log = ["rustls?/logging"] [dependencies] arbitrary = { workspace = true, optional = true } diff --git a/quinn/Cargo.toml b/quinn/Cargo.toml index 173f1093f..d1829e85b 100644 --- a/quinn/Cargo.toml +++ b/quinn/Cargo.toml @@ -38,6 +38,8 @@ runtime-smol = ["async-io", "smol"] # Configure `tracing` to log events via `log` if no `tracing` subscriber exists. log = ["tracing/log", "proto/log", "udp/log"] +# Enable rustls logging +rustls-log = ["rustls?/logging"] [dependencies] async-io = { workspace = true, optional = true }