Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace env_logger with sp_tracing #5065

Merged
merged 29 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
81309ff
Use sp_tracing for tests logging
Safrout1 Jul 18, 2024
0efe06b
replace env_logger with sp_tracing in test files
Safrout1 Jul 18, 2024
30daacc
Update substrate/frame/sassafras/src/tests.rs
Safrout1 Jul 25, 2024
7e329e5
Merge branch 'master' into use-sp-tracing
acatangiu Jul 25, 2024
467d69c
omit the let _ for sp-tracing
Safrout1 Jul 28, 2024
60611fb
Use sp_tracing with try_init_simple for substrate/frame/contracts/src…
Safrout1 Jul 28, 2024
8b59993
use sp-tracing in polkadot/node/subsystem-bench/src/cli/subsystem-ben…
Safrout1 Jul 28, 2024
50a54d1
Use sp-tracing in substrate/client/executor/benches/bench.rs and subs…
Safrout1 Jul 28, 2024
8980035
Use sp_tracing in bridges/relays/utils/src/initialize.rs and keep the…
Safrout1 Jul 28, 2024
e041bcd
globally remove the env_logger dependency
Safrout1 Jul 28, 2024
86d2d04
Merge branch 'master' into use-sp-tracing
Safrout1 Jul 28, 2024
9b290ac
Merge branch 'master' into use-sp-tracing
Safrout1 Jul 29, 2024
3fb81ce
Merge branch 'master' into use-sp-tracing
acatangiu Jul 29, 2024
f32c85e
Fix errors related to using filters with and subscribe builders with …
Safrout1 Jul 29, 2024
58f4ecb
try fixing the subscriber import issue
Safrout1 Jul 29, 2024
82c7f73
Revert "try fixing the subscriber import issue"
Safrout1 Jul 29, 2024
e132726
Update substrate/primitives/tracing/src/lib.rs
Safrout1 Jul 30, 2024
816a673
Update bridges/relays/utils/Cargo.toml
Safrout1 Jul 30, 2024
46d96b3
Merge branch 'master' into use-sp-tracing
Safrout1 Jul 30, 2024
6c2ed50
fix clippy errors
Safrout1 Jul 30, 2024
7f25f9e
Merge branch 'master' into use-sp-tracing
Safrout1 Jul 30, 2024
a1ca808
Format the initializers.rs file
Safrout1 Jul 30, 2024
0a405f6
Add a .prdoc file
Safrout1 Jul 30, 2024
d794d1d
use default features of sp-tracing always
Safrout1 Jul 30, 2024
e7ed418
format the tracing cargo.toml
Safrout1 Jul 30, 2024
ebc4ef9
formatting cargo.toml files with taplo
Safrout1 Jul 31, 2024
7b4f321
add the suggestions for the prdoc
Safrout1 Jul 31, 2024
928f882
Merge branch 'master' into use-sp-tracing
Safrout1 Jul 31, 2024
0e4bdf3
format the prdoc file
Safrout1 Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions Cargo.lock

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

43 changes: 21 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[workspace.package]
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
repository = "https://github.com/paritytech/polkadot-sdk.git"
license = "GPL-3.0-only"
homepage = "https://paritytech.github.io/polkadot-sdk/"
license = "GPL-3.0-only"
repository = "https://github.com/paritytech/polkadot-sdk.git"

[workspace]
resolver = "2"
Expand Down Expand Up @@ -547,29 +547,29 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(substrate_runtime)'] }

[workspace.lints.clippy]
all = { level = "allow", priority = 0 }
correctness = { level = "warn", priority = 1 }
bind_instead_of_map = { level = "allow", priority = 2 } # stylistic
borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one
complexity = { level = "warn", priority = 1 }
correctness = { level = "warn", priority = 1 }
default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic
derivable_impls = { level = "allow", priority = 2 } # false positives
eq_op = { level = "allow", priority = 2 } # In tests we test equality.
erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS
extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic
identity-op = { level = "allow", priority = 2 } # One case where we do 0 +
if-same-then-else = { level = "allow", priority = 2 }
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000
type_complexity = { level = "allow", priority = 2 } # raison d'etre
needless-lifetimes = { level = "allow", priority = 2 } # generated code
needless_option_as_deref = { level = "allow", priority = 2 } # false positives
nonminimal-bool = { level = "allow", priority = 2 } # maybe
borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one
option-map-unit-fn = { level = "allow", priority = 2 } # stylistic
stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort
too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to)
needless-lifetimes = { level = "allow", priority = 2 } # generated code
type_complexity = { level = "allow", priority = 2 } # raison d'etre
unit_arg = { level = "allow", priority = 2 } # stylistic
unnecessary_cast = { level = "allow", priority = 2 } # Types may change
identity-op = { level = "allow", priority = 2 } # One case where we do 0 +
useless_conversion = { level = "allow", priority = 2 } # Types may change
unit_arg = { level = "allow", priority = 2 } # stylistic
option-map-unit-fn = { level = "allow", priority = 2 } # stylistic
bind_instead_of_map = { level = "allow", priority = 2 } # stylistic
erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS
eq_op = { level = "allow", priority = 2 } # In tests we test equality.
while_immutable_condition = { level = "allow", priority = 2 } # false positives
needless_option_as_deref = { level = "allow", priority = 2 } # false positives
derivable_impls = { level = "allow", priority = 2 } # false positives
stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort
extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic
default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000

[workspace.dependencies]
Inflector = { version = "0.11.4" }
Expand Down Expand Up @@ -729,7 +729,6 @@ either = { version = "1.8.1", default-features = false }
emulated-integration-tests-common = { path = "cumulus/parachains/integration-tests/emulated/common", default-features = false }
enumflags2 = { version = "0.7.7" }
enumn = { version = "0.1.13" }
env_logger = { version = "0.11.3" }
environmental = { version = "1.1.4", default-features = false }
equivocation-detector = { path = "bridges/relays/equivocation" }
ethabi = { version = "1.0.0", default-features = false, package = "ethabi-decode" }
Expand Down Expand Up @@ -1358,22 +1357,22 @@ zstd = { version = "0.12.4", default-features = false }

[profile.release]
# Polkadot runtime requires unwinding.
panic = "unwind"
opt-level = 3
panic = "unwind"

# make sure dev builds with backtrace do not slow us down
[profile.dev.package.backtrace]
inherits = "release"

[profile.production]
codegen-units = 1
inherits = "release"
lto = true
codegen-units = 1

[profile.testnet]
inherits = "release"
debug = 1 # debug symbols are useful for profilers
debug-assertions = true
inherits = "release"
overflow-checks = true

# The list of dependencies below (which can be both direct and indirect dependencies) are crates
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async-trait = { workspace = true }
backoff = { workspace = true }
console = { workspace = true }
isahc = { workspace = true }
env_logger = { workspace = true }
sp-tracing = { workspace = true, default-features = true }
futures = { workspace = true }
jsonpath_lib = { workspace = true }
log = { workspace = true }
Expand Down
Loading
Loading