Sync desktop daily logs and fix emulator ADB upstream connections
This commit is contained in:
1 parent
87e1fff59b
commit
0d269f3ded
15 files changed
+139
-12
No files matched your search
@@ -94,7 +94,7 @@ async fn online(args: Arc<Gateway>, health: &Option<WorkerHealth>) -> Result<()>
|
||||
tasks.spawn(async move {
|
||||
let device=args.device.clone();
|
||||
if let Err(error) = serve_session(args, session, signal_key).await {
|
||||
if let Some(health)=health {health.lock().unwrap_or_else(|e|e.into_inner()).last_error=Some(error.to_string());}
|
||||
if let Some(health)=health {health.lock().unwrap_or_else(|e|e.into_inner()).last_error=Some(format!("{error:#}"));}
|
||||
warn!(%device,%error, "device stream ended");
|
||||
}
|
||||
});
|
||||
@@ -113,7 +113,7 @@ pub async fn run(args: Arc<Gateway>, health: Option<WorkerHealth>) {
|
||||
if let Some(health) = &health {
|
||||
let mut state = health.lock().unwrap_or_else(|e| e.into_inner());
|
||||
state.connected = false;
|
||||
state.last_error = Some(error.to_string());
|
||||
state.last_error = Some(format!("{error:#}"));
|
||||
}
|
||||
warn!(device=%args.device,%error, "gateway offline; reconnecting");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user