about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-06-13T11·58+0300
committerclbot <clbot@tvl.fyi>2024-06-13T16·18+0000
commit79bfa931ed6e559cc5f9de600886d339b091e66c (patch)
treecf617b355cca430c66a8cdf4b039f944e6ad906a
parent29eda2d5b2baa61aea80e2cef3c5508278751421 (diff)
feat(tvix/tracing): set release_max_level_debug for tracing r/8262
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 <root@gws.fyi>
Autosubmit: flokli <flokli@flokli.de>
-rw-r--r--tvix/Cargo.nix4
-rw-r--r--tvix/tracing/Cargo.toml2
2 files changed, 3 insertions, 3 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix
index fa48c2ca60..360747b8d2 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 eea6ca1771..f65c9eba6c 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"