Update tracing-subscriber requirement from 0.2.22 to 0.3.1 (#3076)

# Objective

- Fix #3058 opened by dependabot

## Solution

- A new feature need to be added to `tracing-subscriber`
This commit is contained in:
François 2021-11-12 03:08:27 +00:00
parent 76cb662be1
commit 5127274b31
2 changed files with 5 additions and 5 deletions

View file

@ -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" }

View file

@ -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);