소스 검색

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

Zan Pan 1 년 전
부모
커밋
bd852c68fd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/cli-config/src/lib.rs

+ 1 - 1
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
     })
 });