mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-17 01:00:41 +01:00
fix(signaling): log the sanitized reason when signaling fails to connect
The WebSocket transport already reduces errors to a category or HTTP status without the token or endpoint, so log it instead of 'details omitted' to tell a refused upgrade from a network failure (#166). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c0abdeae72
commit
81e9ccfa05
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -855,8 +855,8 @@ async fn serve(mut capture: Arc<ScreenCapture>, input: Arc<InputInjector>, shutd
|
||||
Arc::new(cli)
|
||||
}
|
||||
Err(e) => {
|
||||
let _ = e;
|
||||
log::error!("Failed to connect signaling; retrying in 5s (details omitted)");
|
||||
// ws_transport errors carry only a category or HTTP status, never the token or URL.
|
||||
log::error!("Failed to connect signaling; retrying in 5s: {e}");
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(5)).await;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user