-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace env_logger with sp_tracing (#5065)
This PR replaces env_logger with sp_tracing because of an issue with env_logger and gum #4660 --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: Andrei Eres <[email protected]>
- Loading branch information
1 parent
6a5b6e0
commit 776e957
Showing
42 changed files
with
196 additions
and
268 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[workspace.package] | ||
authors = ["Parity Technologies <[email protected]>"] | ||
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" | ||
|
@@ -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" } | ||
|
@@ -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" } | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.