Skip to content

Commit

Permalink
Replace bevy_log with bevy_utils::tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
LeshaInc committed Mar 17, 2024
1 parent ec207cb commit 903ae15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/diagnostic/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::{

use bevy_diagnostic::{Diagnostic, DiagnosticMeasurement, DiagnosticPath, DiagnosticsStore};
use bevy_ecs::system::{Res, ResMut, Resource};
use bevy_utils::Instant;
use bevy_utils::{tracing, Instant};
use std::sync::Mutex;
use wgpu::{
Buffer, BufferDescriptor, BufferUsages, CommandEncoder, ComputePass, Features, MapMode,
Expand Down Expand Up @@ -432,7 +432,7 @@ impl FrameData {
let is_mapped = self.is_mapped.clone();
read_buffer.slice(..).map_async(MapMode::Read, move |res| {
if let Err(e) = res {
bevy_log::warn!("Failed to download render statistics buffer: {e}");
tracing::warn!("Failed to download render statistics buffer: {e}");
return;
}

Expand Down

0 comments on commit 903ae15

Please sign in to comment.