From f712ea65c22cd00ac101102906e01901101eec6d Mon Sep 17 00:00:00 2001 From: Eero Lehtinen Date: Sun, 24 Mar 2024 02:56:49 +0200 Subject: [PATCH] Warn once instead of debug --- crates/bevy_render/src/view/window/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_render/src/view/window/mod.rs b/crates/bevy_render/src/view/window/mod.rs index 97144eff21b99b..02b609cb473c52 100644 --- a/crates/bevy_render/src/view/window/mod.rs +++ b/crates/bevy_render/src/view/window/mod.rs @@ -8,7 +8,7 @@ use crate::{ }; use bevy_app::{App, Plugin}; use bevy_ecs::{entity::EntityHashMap, prelude::*}; -use bevy_utils::{default, tracing::debug, HashSet}; +use bevy_utils::{default, tracing::debug, warn_once, HashSet}; use bevy_window::{ CompositeAlphaMode, PresentMode, PrimaryWindow, RawHandleWrapper, Window, WindowClosed, }; @@ -320,7 +320,7 @@ pub fn prepare_windows( Ok(frame) => window.set_swapchain_texture(frame), #[cfg(target_os = "linux")] Err(wgpu::SurfaceError::Outdated) if is_nvidia() => { - bevy_utils::tracing::debug!( + warn_once!( "Couldn't get swap chain texture. This often happens with \ the Nvidia 550 driver. It can be safely ignored." ); @@ -334,7 +334,7 @@ pub fn prepare_windows( } #[cfg(target_os = "linux")] Err(wgpu::SurfaceError::Outdated) if is_nvidia() => { - bevy_utils::tracing::debug!( + warn_once!( "Couldn't get swap chain texture. This often happens with \ the Nvidia 550 driver. It can be safely ignored." );