From 5bf44b6187fa543354b4e27167a20ec92803ffba Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 13 Nov 2024 21:22:59 +0530 Subject: [PATCH] net/quinn: Enable log feature This is required if and when we do need to capture logs from quinn for debugging. Part-of: --- Cargo.lock | 1 + net/quinn/Cargo.toml | 5 +++-- net/quinn/src/lib.rs | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93f09275..86a3a5ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2846,6 +2846,7 @@ version = "0.14.0-alpha.1" dependencies = [ "async-channel", "bytes", + "env_logger", "futures", "glib", "gst-plugin-version-helper", diff --git a/net/quinn/Cargo.toml b/net/quinn/Cargo.toml index 994cfc52..e8ae7cc5 100644 --- a/net/quinn/Cargo.toml +++ b/net/quinn/Cargo.toml @@ -16,8 +16,8 @@ gst.workspace = true gst-base = { workspace = true, features = ["v1_22"] } tokio = { version = "1.36.0", default-features = false, features = ["time", "rt-multi-thread", "macros"] } futures = "0.3.30" -quinn = { version = "0.11.5", default-features = false, features = ["ring", "rustls", "runtime-tokio"] } -quinn-proto ={ version = "0.11.8", default-features = false, features = ["rustls"] } +quinn = { version = "0.11.5", default-features = false, features = ["ring", "rustls", "runtime-tokio", "log"] } +quinn-proto ={ version = "0.11.8", default-features = false, features = ["rustls", "log"] } rustls = { version = "0.23", default-features = false, features = ["std"] } rustls-pemfile = "2" rustls-pki-types = "1" @@ -26,6 +26,7 @@ bytes = "1.5.0" thiserror = "2" async-channel = "2.3" itertools = "0.12" +env_logger = "0.11" [dev-dependencies] gst-check = { workspace = true, features = ["v1_20"] } diff --git a/net/quinn/src/lib.rs b/net/quinn/src/lib.rs index adb8a9a3..432ca5f0 100644 --- a/net/quinn/src/lib.rs +++ b/net/quinn/src/lib.rs @@ -29,6 +29,7 @@ mod quinnquicsrc; mod utils; fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { + env_logger::init(); #[cfg(feature = "doc")] { common::QuinnQuicRole::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty());