Clone in a terminal:
Commit f611326
Johan Mattsson - 2026-11-03T01:12:49+00:00
f6113265cdb2934e5bbf52cc04d8bed761c325eejohan.mattsson.m@gmail.com

Update logging

Changed files (1)

Diff

diff --git a/src/lib.rs b/src/lib.rsindex 12fad51..b3afa94 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -543,9 +543,7 @@ fn show_request_detail(request: &StoredRequest) {     let request_data = match serde_json::to_string(request) {         Ok(request_data) => request_data,         Err(error) => {-            web_sys::console::error_1(-                &format!("Could not prepare request details: {error}").into(),-            );+            gloo::console::error!(format!("Could not prepare request details: {error}"));             return;         }     };@@ -568,13 +566,13 @@ fn load_startup_project() {                     show_request_picker();                 }                 Ok(None) => {}-                Err(error) => web_sys::console::error_1(-                    &format!("Could not read the startup project: {error}").into(),-                ),+                Err(error) => {+                    log!(format!("Could not read the startup project: {error}"));+                }             },-            Err(error) => web_sys::console::error_1(-                &format!("Could not load the startup project: {error}").into(),-            ),+            Err(error) => {+                log!(format!("Could not load the startup project: {error}"));+            }         }     }); }

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112