fix: don't log content of internal messages
All checks were successful
Rust / build (push) Successful in 1m57s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

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>, Self: actix::Handler<M>,
<M as actix::Message>::Result: Send, <M as actix::Message>::Result: Send,
{ {
tracing::info!(?msg, "send");
if let Some(message_log) = &self.message_log { if let Some(message_log) = &self.message_log {
let log_message = format!("send: {:?}", msg); let log_message = format!("send: {:?}", msg);
tracing::debug!(log_message);
if let Ok(mut log) = message_log.write() { if let Ok(mut log) = message_log.write() {
log.push(log_message); log.push(log_message);
} }