Browse Source

Prettify log message for sending message

new-http-api
Thomas Eizinger 3 years ago
parent
commit
05a883297f
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 2
      daemon/src/send_to_socket.rs

2
daemon/src/send_to_socket.rs

@ -33,7 +33,7 @@ where
async fn handle(&mut self, message: T, ctx: &mut xtra::Context<Self>) {
let message_name = message.to_string(); // send consumes the message, avoid a clone just in case it errors by getting the name here
tracing::trace!(%message_name, "send to socket message");
tracing::trace!("Sending '{}'", message_name);
if let Err(e) = self.write.send(message).await {
tracing::error!("Failed to write message {} to socket: {}", message_name, e);

Loading…
Cancel
Save