From 73c5bb19e7274b3e4048f70a19a7b9a2d361bfa1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 14 Apr 2024 23:24:12 +0200 Subject: fix(engine): remove using tracing::warning without debug crate feature --- engine/src/renderer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/src') diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs index ef653a2..9b4acb4 100644 --- a/engine/src/renderer/mod.rs +++ b/engine/src/renderer/mod.rs @@ -7,7 +7,6 @@ use ecs::component::local::Local; use ecs::sole::Single; use ecs::system::{Into as _, System}; use ecs::{Component, Query}; -use tracing::warn; use crate::camera::Camera; use crate::color::Color; @@ -108,7 +107,8 @@ fn render( Some(camera) }) else { - warn!("No current camera. Nothing will be rendered"); + #[cfg(feature = "debug")] + tracing::warn!("No current camera. Nothing will be rendered"); return; }; -- cgit v1.2.3-18-g5258