From 91c55495781222707a8fb9a2cb7fb1c021c48692 Mon Sep 17 00:00:00 2001 From: Morgan Adamiec Date: Thu, 2 May 2024 13:17:19 +0100 Subject: [PATCH 1/2] sc-tracing: enable env-filter feature This crate uses this feature however it appears to still work without this feature enabled. I believe this is due to feature unification of the workspace. Some other crate enables this feature so it also ends up enabled here. But when this crate is pushed to crates.io and compiled individualy it fails to compile. --- substrate/client/tracing/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/tracing/Cargo.toml b/substrate/client/tracing/Cargo.toml index ba1a7c51ab8d8..35cf393639919 100644 --- a/substrate/client/tracing/Cargo.toml +++ b/substrate/client/tracing/Cargo.toml @@ -30,7 +30,7 @@ serde = { workspace = true, default-features = true } thiserror = { workspace = true } tracing = "0.1.29" tracing-log = "0.1.3" -tracing-subscriber = { workspace = true, features = ["parking_lot"] } +tracing-subscriber = { workspace = true, features = ["parking_lot", "env-filter"] } sc-client-api = { path = "../api" } sc-tracing-proc-macro = { path = "proc-macro" } sp-api = { path = "../../primitives/api" } From 507e98f1262fdfe1ffbd1f8de094051a1910b03c Mon Sep 17 00:00:00 2001 From: Morgan Adamiec Date: Thu, 2 May 2024 14:10:29 +0100 Subject: [PATCH 2/2] fmt --- substrate/client/tracing/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/tracing/Cargo.toml b/substrate/client/tracing/Cargo.toml index 35cf393639919..a8f0676a82b29 100644 --- a/substrate/client/tracing/Cargo.toml +++ b/substrate/client/tracing/Cargo.toml @@ -30,7 +30,7 @@ serde = { workspace = true, default-features = true } thiserror = { workspace = true } tracing = "0.1.29" tracing-log = "0.1.3" -tracing-subscriber = { workspace = true, features = ["parking_lot", "env-filter"] } +tracing-subscriber = { workspace = true, features = ["env-filter", "parking_lot"] } sc-client-api = { path = "../api" } sc-tracing-proc-macro = { path = "proc-macro" } sp-api = { path = "../../primitives/api" }