From 152f76459e57e8ed2d6d921825c2b08d35294651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Wed, 1 Sep 2021 22:04:25 +0200 Subject: [PATCH] Remove some browser leftovers (#9636) As we have removed the feature for now, we don't need this here as well. Co-authored-by: Giles Cope --- Cargo.lock | 2 -- client/tracing/Cargo.toml | 4 ---- client/tracing/src/logging/mod.rs | 10 ---------- 3 files changed, 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a613b7ba03686..c436497f3e42a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8323,8 +8323,6 @@ dependencies = [ "tracing", "tracing-log", "tracing-subscriber", - "wasm-bindgen", - "web-sys", ] [[package]] diff --git a/client/tracing/Cargo.toml b/client/tracing/Cargo.toml index 647f4de4a3a70..3e314a82aa583 100644 --- a/client/tracing/Cargo.toml +++ b/client/tracing/Cargo.toml @@ -35,7 +35,3 @@ sp-core = { version = "4.0.0-dev", path = "../../primitives/core" } sc-client-api = { version = "4.0.0-dev", path = "../api" } sc-tracing-proc-macro = { version = "4.0.0-dev", path = "./proc-macro" } sc-rpc-server = { version = "4.0.0-dev", path = "../rpc-servers" } - -[target.'cfg(target_os = "unknown")'.dependencies] -wasm-bindgen = "0.2.67" -web-sys = { version = "0.3.44", features = ["console"] } diff --git a/client/tracing/src/logging/mod.rs b/client/tracing/src/logging/mod.rs index 32a1f9250cd9b..dd4830fe89752 100644 --- a/client/tracing/src/logging/mod.rs +++ b/client/tracing/src/logging/mod.rs @@ -177,26 +177,16 @@ where }; let builder = FmtSubscriber::builder().with_env_filter(env_filter); - #[cfg(not(target_os = "unknown"))] let builder = builder.with_span_events(format::FmtSpan::NONE); - #[cfg(not(target_os = "unknown"))] let builder = builder.with_writer(std::io::stderr as _); - #[cfg(target_os = "unknown")] - let builder = builder.with_writer(std::io::sink); - - #[cfg(not(target_os = "unknown"))] let builder = builder.event_format(event_format); - #[cfg(not(target_os = "unknown"))] let builder = builder_hook(builder); let subscriber = builder.finish().with(PrefixLayer); - #[cfg(target_os = "unknown")] - let subscriber = subscriber.with(ConsoleLogLayer::new(event_format)); - Ok(subscriber) }