Disable the interest cache (#11854)

* Disable the interest cache

The feature is currently broken with the latest `tracing-core`. We will enable it again, when it is
fixed upstream.

* FMT
This commit is contained in:
Bastian Köcher
2022-07-18 21:25:18 +02:00
committed by GitHub
parent 4e787fbd30
commit 3d95c270e0
6 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ rustc-hash = "1.1.0"
serde = "1.0.136"
thiserror = "1.0.30"
tracing = "0.1.29"
tracing-log = { version = "0.1.3", features = ["interest-cache"] }
tracing-log = "0.1.3"
tracing-subscriber = { version = "0.2.25", features = ["parking_lot"] }
sc-client-api = { version = "4.0.0-dev", path = "../api" }
sc-rpc-server = { version = "4.0.0-dev", path = "../rpc-servers" }
+1 -4
View File
@@ -155,10 +155,7 @@ where
let max_level_hint = Layer::<FmtSubscriber>::max_level_hint(&env_filter);
let max_level = to_log_level_filter(max_level_hint);
tracing_log::LogTracer::builder()
.with_max_level(max_level)
.with_interest_cache(tracing_log::InterestCacheConfig::default())
.init()?;
tracing_log::LogTracer::builder().with_max_level(max_level).init()?;
// If we're only logging `INFO` entries then we'll use a simplified logging format.
let detailed_output = match max_level_hint {