Skip to content

Commit

Permalink
Remove feature gate
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed Aug 25, 2023
1 parent 5b66a53 commit e464e46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions polkadot/node/core/pvf/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sc-executor-wasmtime = { path = "../../../../../substrate/client/executor/wasmti
sp-core = { path = "../../../../../substrate/primitives/core" }
sp-externalities = { path = "../../../../../substrate/primitives/externalities" }
sp-io = { path = "../../../../../substrate/primitives/io" }
sp-tracing = { path = "../../../../../substrate/primitives/tracing", optional = true }
sp-tracing = { path = "../../../../../substrate/primitives/tracing" }

[target.'cfg(target_os = "linux")'.dependencies]
landlock = "0.2.0"
Expand All @@ -37,4 +37,4 @@ tempfile = "3.3.0"
[features]
# This feature is used to export test code to other crates without putting it in the production build.
# Also used for building the puppet worker.
test-utils = [ "sp-tracing" ]
test-utils = [ ]
9 changes: 1 addition & 8 deletions polkadot/node/core/pvf/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ pub use cpu_time::ProcessTime;
/// DO NOT USE - internal for macros only.
#[doc(hidden)]
pub mod __private {
pub mod sp_tracing {
pub fn try_init_simple() {
#[cfg(feature = "test-utils")]
{
let _ = ::sp_tracing::try_init_simple();
}
}
}
pub use sp_tracing::try_init_simple;
}

const LOG_TARGET: &str = "parachain::pvf-common";
Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/core/pvf/common/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ macro_rules! decl_worker_main {
}

fn main() {
$crate::__private::sp_tracing::try_init_simple();
$crate::__private::try_init_simple();

let args = std::env::args().collect::<Vec<_>>();
if args.len() == 1 {
Expand Down

0 comments on commit e464e46

Please sign in to comment.