Skip to content

Commit

Permalink
Update tracing-subscriber requirement from 0.2.22 to 0.3.1 (#3076)
Browse files Browse the repository at this point in the history
# Objective

- Fix #3058 opened by dependabot

## Solution

- A new feature need to be added to `tracing-subscriber`
  • Loading branch information
mockersf committed Nov 12, 2021
1 parent 76cb662 commit 5127274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ keywords = ["bevy"]
bevy_app = { path = "../bevy_app", version = "0.5.0" }
bevy_utils = { path = "../bevy_utils", version = "0.5.0" }

tracing-subscriber = {version = "=0.2.24", features = ["registry"]}
tracing-chrome = { version = "=0.3.1", optional = true }
tracing-tracy = { version = "0.7.0", optional = true }
tracing-subscriber = {version = "0.3.1", features = ["registry", "env-filter"]}
tracing-chrome = { version = "0.4.0", optional = true }
tracing-tracy = { version = "0.8.0", optional = true }

[target.'cfg(target_os = "android")'.dependencies]
android_log-sys = "0.2.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
tracing-wasm = "=0.2.0"
tracing-wasm = "0.2.1"

[dev-dependencies]
bevy_internal = { path = "../bevy_internal", version = "0.5.0" }
2 changes: 1 addition & 1 deletion crates/bevy_log/src/android_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl core::default::Default for StringRecorder {
}

impl<S: Subscriber + for<'a> LookupSpan<'a>> Layer<S> for AndroidLayer {
fn new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>) {
fn on_new_span(&self, attrs: &Attributes<'_>, id: &Id, ctx: Context<'_, S>) {
let mut new_debug_record = StringRecorder::new();
attrs.record(&mut new_debug_record);

Expand Down

0 comments on commit 5127274

Please sign in to comment.