Skip to content

Commit

Permalink
Disable the interest cache (Substrate paritytech#11854) (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 authored Jul 20, 2022
1 parent 73ad137 commit bfcc96a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 16 deletions.
2 changes: 0 additions & 2 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/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
lazy_static = "1.4.0"
lru = "0.7.5"
parking_lot = "0.12.0"
tracing = "0.1.29"
tracing = "=0.1.29"
wasmi = "0.9.1"

codec = { package = "parity-scale-codec", version = "3.0.0" }
Expand Down
2 changes: 1 addition & 1 deletion client/network-gossip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ futures-timer = "3.0.1"
libp2p = { version = "0.44.0", default-features = false }
log = "0.4.17"
lru = "0.7.5"
tracing = "0.1.29"
tracing = "=0.1.29"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", version = "0.10.0-dev", path = "../../utils/prometheus" }
sc-network = { version = "0.10.0-dev", path = "../network" }
sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }
Expand Down
2 changes: 1 addition & 1 deletion client/offchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ once_cell = "1.8"
parking_lot = "0.12.0"
rand = "0.7.2"
threadpool = "1.7"
tracing = "0.1.29"
tracing = "=0.1.29"
sc-client-api = { version = "4.0.0-dev", path = "../api" }
sc-network = { version = "0.10.0-dev", path = "../network" }
sc-utils = { version = "4.0.0-dev", path = "../utils" }
Expand Down
2 changes: 1 addition & 1 deletion client/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../..
sc-tracing = { version = "4.0.0-dev", path = "../tracing" }
sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
sc-sysinfo = { version = "6.0.0-dev", path = "../sysinfo" }
tracing = "0.1.29"
tracing = "=0.1.29"
tracing-futures = { version = "0.2.4" }
parity-util-mem = { version = "0.11.0", default-features = false, features = [
"primitive-types",
Expand Down
4 changes: 2 additions & 2 deletions client/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ regex = "1.5.5"
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 = "=0.1.29"
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.26", default-features = false}

[features]
default = ["std"]
Expand Down
4 changes: 2 additions & 2 deletions primitives/runtime-interface/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ repository = "https://github.com/paritytech/substrate/"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
tracing = "0.1.29"
tracing-core = "0.1.26"
tracing = "=0.1.29"
tracing-core = "=0.1.26"
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.26", default-features = false }
tracing-subscriber = { version = "0.2.25", optional = true, features = [
"tracing-log",
] }
Expand Down

0 comments on commit bfcc96a

Please sign in to comment.