瀏覽代碼

fix tracing in desktop

Evan Almloff 1 年之前
父節點
當前提交
e5b15f7c31
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/desktop/src/protocol.rs
  2. 1 1
      packages/desktop/src/webview.rs

+ 1 - 1
packages/desktop/src/protocol.rs

@@ -107,7 +107,7 @@ pub(super) fn desktop_handler(
                     if let Some(assets_head) = assets_head {
                         head += &assets_head;
                     } else {
-                        trace::warn!("No assets head found. You can compile assets with the dioxus-cli in release mode");
+                        tracing::warn!("No assets head found. You can compile assets with the dioxus-cli in release mode");
                     }
                 }
 

+ 1 - 1
packages/desktop/src/webview.rs

@@ -52,7 +52,7 @@ pub fn build(
             match std::fs::read_to_string(&head) {
                 Ok(s) => Some(s),
                 Err(err) => {
-                    trace::error!("Failed to read {head:?}: {err}");
+                    tracing::error!("Failed to read {head:?}: {err}");
                     None
                 }
             }