Initialize tracing to INFO in release mode

This commit is contained in:
2026-07-11 12:21:37 -04:00
parent 87bd1b50a9
commit 102387fdad

View File

@@ -16,6 +16,9 @@ use crate::app::App;
fn tracing_setup() {
#[cfg(debug_assertions)]
dioxus::logger::init(tracing::Level::DEBUG).expect("Failed to initialize tracing logger");
#[cfg(not(debug_assertions))]
dioxus::logger::init(tracing::Level::INFO).expect("Failed to initialize tracing logger");
}
#[cfg(not(feature = "server"))]