fix: don't log content of internal messages

This commit is contained in:
Paul Campbell 2024-07-27 07:03:52 +01:00
parent 656ec4a534
commit 3ae113212a

View file

@ -231,10 +231,8 @@ impl ServerActor {
Self: actix::Handler<M>,
<M as actix::Message>::Result: Send,
{
tracing::info!(?msg, "send");
if let Some(message_log) = &self.message_log {
let log_message = format!("send: {:?}", msg);
tracing::debug!(log_message);
if let Ok(mut log) = message_log.write() {
log.push(log_message);
}