Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Disable the interest cache (paritytech#11854)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bkchr committed Jul 18, 2022
1 parent 32bc42b commit a434d07
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
8 changes: 3 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
5 changes: 1 addition & 4 deletions client/tracing/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion primitives/io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ futures = { version = "0.3.21", features = ["thread-pool"], optional = true }
parking_lot = { version = "0.12.0", optional = true }
secp256k1 = { version = "0.21.2", features = ["recovery", "global-context"], optional = true }
tracing = { version = "0.1.29", default-features = false }
tracing-core = { version = "0.1.26", default-features = false}
tracing-core = { version = "0.1.28", default-features = false}

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion primitives/runtime-interface/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
tracing = "0.1.29"
tracing-core = "0.1.26"
tracing-core = "0.1.28"
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor" }
sc-executor-common = { version = "0.10.0-dev", path = "../../../client/executor/common" }
sp-io = { version = "6.0.0", path = "../../io" }
Expand Down
2 changes: 1 addition & 1 deletion primitives/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ codec = { version = "3.0.0", package = "parity-scale-codec", default-features =
"derive",
] }
tracing = { version = "0.1.29", default-features = false }
tracing-core = { version = "0.1.26", default-features = false }
tracing-core = { version = "0.1.28", default-features = false }
tracing-subscriber = { version = "0.2.25", optional = true, features = [
"tracing-log",
] }
Expand Down

0 comments on commit a434d07

Please sign in to comment.