From daf05869a3571cc5af60fb2d837a04195abc7670 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Mon, 3 Jul 2023 22:25:57 +0200 Subject: [PATCH] tune irc logging --- src/projections/irc/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/projections/irc/mod.rs b/src/projections/irc/mod.rs index 011398e..e5cc7de 100644 --- a/src/projections/irc/mod.rs +++ b/src/projections/irc/mod.rs @@ -104,10 +104,11 @@ async fn handle_registration<'a>( break Err(err.into()); } }; + log::debug!("Incoming raw IRC message: '{res}'"); let parsed = client_message(res); match parsed { Ok((_, msg)) => { - log::info!("Incoming IRC message: {msg:?}"); + log::debug!("Incoming IRC message: {msg:?}"); match msg { ClientMessage::Nick { nickname } => { if let Some((username, realname)) = future_username { @@ -369,7 +370,9 @@ async fn handle_incoming_message( user_handle: &mut PlayerConnection, writer: &mut (impl AsyncWrite + Unpin), ) -> Result { + log::debug!("Incoming raw IRC message: '{buffer}'"); let parsed = client_message(buffer); + log::debug!("Incoming IRC message: {parsed:?}"); match parsed { Ok((_, msg)) => match msg { ClientMessage::Ping { token } => {