Forráskód Böngészése

report request errors in desktop

Evan Almloff 1 éve
szülő
commit
efe08df966
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      packages/desktop/src/protocol.rs

+ 6 - 0
packages/desktop/src/protocol.rs

@@ -127,6 +127,12 @@ pub(super) fn desktop_handler(
             .map_err(From::from);
     }
 
+    log::error!(
+        "Failed to find {} (as path {})",
+        request.uri().path(),
+        asset.display()
+    );
+
     Response::builder()
         .status(StatusCode::NOT_FOUND)
         .body(Cow::from(String::from("Not Found").into_bytes()))