diff options
-rw-r--r-- | engine/src/renderer/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; |