From 5db953cea582b341faf27d7c3ac8a36efa5c890d Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 14 Mar 2025 20:11:28 +0500 Subject: [PATCH] no-test-logging impl --- ntex/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ntex/src/lib.rs b/ntex/src/lib.rs index 93220f15..a15ee31a 100644 --- a/ntex/src/lib.rs +++ b/ntex/src/lib.rs @@ -126,6 +126,7 @@ pub mod util { #[doc(hidden)] pub fn enable_test_logging() { + #[cfg(not(feature = "no-test-logging"))] if std::env::var("NTEX_NO_TEST_LOG").is_err() { if std::env::var("RUST_LOG").is_err() { std::env::set_var("RUST_LOG", "trace");