Use tracing::warn when the dioxus CLI is not used (#2250)

This commit is contained in:
Zan Pan 2024-04-06 03:36:05 +08:00 committed by GitHub
parent fcbebbbf14
commit bd852c68fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
})
});