Skip to content

Commit

Permalink
Add printing any errors from handle_socket
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Feb 22, 2024
1 parent 26e93ef commit c0fd47f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ pub trait Agent: 'static + Sync + Send + Sized {
let mut session = Session::new(agent, socket);

tokio::spawn(async move {
let _ = session.handle_socket().await;
if let Err(e) = session.handle_socket().await {
error!("Agent protocol error; error = {:?}", e);
}
});
}
Err(e) => {
Expand Down

0 comments on commit c0fd47f

Please sign in to comment.