Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove some browser leftovers (#9636)
Browse files Browse the repository at this point in the history
As we have removed the feature for now, we don't need this here as well.

Co-authored-by: Giles Cope <[email protected]>
  • Loading branch information
bkchr and gilescope authored Sep 1, 2021
1 parent 81cae8e commit 152f764
Show file tree
Hide file tree
Showing 3 changed files with 0 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.

4 changes: 0 additions & 4 deletions client/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
10 changes: 0 additions & 10 deletions client/tracing/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 152f764

Please sign in to comment.