summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-14 23:24:12 +0200
committerHampusM <hampus@hampusmat.com>2024-04-14 23:24:12 +0200
commit73c5bb19e7274b3e4048f70a19a7b9a2d361bfa1 (patch)
treea15b39c233412195ce9de05adb014aa040776a3c
parent8b0c61a061f6515c20f230bdcb2013cba9473e69 (diff)
fix(engine): remove using tracing::warning without debug crate feature
-rw-r--r--engine/src/renderer/mod.rs4
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;
};