From 79bfa931ed6e559cc5f9de600886d339b091e66c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 13 Jun 2024 14:58:05 +0300 Subject: feat(tvix/tracing): set release_max_level_debug for tracing This allows explicitly opting in to get DEBUG-level log lines, by setting RUST_LOG. It currently also causes traces to be emitted in all cases, so we might do some runtime filtering there too, as discussed in cl/11791. Change-Id: I2865bb06a62465836d63196422f5f734f7165386 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11801 Tested-by: BuildkiteCI Reviewed-by: aspen Autosubmit: flokli --- tvix/Cargo.nix | 4 ++-- tvix/tracing/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index fa48c2ca605b..360747b8d283 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -12523,7 +12523,7 @@ rec { "tracing-attributes" = [ "dep:tracing-attributes" ]; "valuable" = [ "tracing-core/valuable" ]; }; - resolvedDefaultFeatures = [ "attributes" "default" "log" "max_level_trace" "release_max_level_info" "std" "tracing-attributes" ]; + resolvedDefaultFeatures = [ "attributes" "default" "log" "max_level_trace" "release_max_level_debug" "std" "tracing-attributes" ]; }; "tracing-attributes" = rec { crateName = "tracing-attributes"; @@ -14010,7 +14010,7 @@ rec { { name = "tracing"; packageId = "tracing"; - features = [ "max_level_trace" "release_max_level_info" ]; + features = [ "max_level_trace" "release_max_level_debug" ]; } { name = "tracing-indicatif"; diff --git a/tvix/tracing/Cargo.toml b/tvix/tracing/Cargo.toml index eea6ca17711f..f65c9eba6cab 100644 --- a/tvix/tracing/Cargo.toml +++ b/tvix/tracing/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] lazy_static = "1.4.0" -tracing = { version = "0.1.40", features = ["max_level_trace", "release_max_level_info"] } +tracing = { version = "0.1.40", features = ["max_level_trace", "release_max_level_debug"] } tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } indicatif = "0.17.8" tracing-indicatif = "0.3.6" -- cgit 1.4.1