Browse Source
Prettify log message for sending message
new-http-api
Thomas Eizinger
3 years ago
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|