From bd852c68fdd482eebb6746b6cc0548666c027b67 Mon Sep 17 00:00:00 2001 From: Zan Pan Date: Sat, 6 Apr 2024 03:36:05 +0800 Subject: [PATCH] Use `tracing::warn` when the dioxus CLI is not used (#2250) --- packages/cli-config/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli-config/src/lib.rs b/packages/cli-config/src/lib.rs index fcb5cd04c..60952555d 100644 --- a/packages/cli-config/src/lib.rs +++ b/packages/cli-config/src/lib.rs @@ -50,7 +50,7 @@ pub static CURRENT_CONFIG: once_cell::sync::Lazy< CURRENT_CONFIG_JSON .and_then(|config| serde_json::from_str(config).ok()) .ok_or_else(|| { - tracing::error!("A library is trying to access the crate's configuration, but the dioxus CLI was not used to build the application."); + tracing::warn!("A library is trying to access the crate's configuration, but the dioxus CLI was not used to build the application."); DioxusCLINotUsed }) });