Skip to content

Commit

Permalink
Shorten log lines
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Mar 12, 2024
1 parent c08cb6b commit 022a4ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub trait Session: 'static + Sync + Send + Sized {
let response = match self.handle(incoming_message).await {
Ok(message) => message,
Err(e) => {
error!("Error handling message; error = {:?}", e);
error!("Error handling message: {:?}", e);
Message::Failure
}
};
Expand Down Expand Up @@ -121,12 +121,12 @@ pub trait Agent: 'static + Sync + Send + Sized {
tokio::spawn(async move {
let adapter = Framed::new(socket, MessageCodec);
if let Err(e) = session.handle_socket::<S>(adapter).await {
error!("Agent protocol error; error = {:?}", e);
error!("Agent protocol error: {:?}", e);
}
});
}
Err(e) => {
error!("Failed to accept socket; error = {:?}", e);
error!("Failed to accept socket: {:?}", e);
return Err(AgentError::IO(e));
}
}
Expand Down

0 comments on commit 022a4ef

Please sign in to comment.