Explorar o código

report request errors in desktop

Evan Almloff hai 1 ano
pai
achega
efe08df966
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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()))