From 5127274b3120152f18b0b1fb1cd31fb159dac126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 12 Nov 2021 03:08:27 +0000 Subject: [PATCH] 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` --- crates/bevy_log/Cargo.toml | 8 ++++---- crates/bevy_log/src/android_tracing.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bevy_log/Cargo.toml b/crates/bevy_log/Cargo.toml index e535408ee6..20096e8e42 100644 --- a/crates/bevy_log/Cargo.toml +++ b/crates/bevy_log/Cargo.toml @@ -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" } diff --git a/crates/bevy_log/src/android_tracing.rs b/crates/bevy_log/src/android_tracing.rs index d9d00af488..a5e7bc8626 100644 --- a/crates/bevy_log/src/android_tracing.rs +++ b/crates/bevy_log/src/android_tracing.rs @@ -54,7 +54,7 @@ impl core::default::Default for StringRecorder { } impl LookupSpan<'a>> Layer 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);