forked from lavina/lavina
1
0
Fork 0

tune irc logging

This commit is contained in:
Nikita Vilunov 2023-07-03 22:25:57 +02:00
parent fc9c45b627
commit daf05869a3
1 changed files with 4 additions and 1 deletions

View File

@ -104,10 +104,11 @@ async fn handle_registration<'a>(
break Err(err.into()); break Err(err.into());
} }
}; };
log::debug!("Incoming raw IRC message: '{res}'");
let parsed = client_message(res); let parsed = client_message(res);
match parsed { match parsed {
Ok((_, msg)) => { Ok((_, msg)) => {
log::info!("Incoming IRC message: {msg:?}"); log::debug!("Incoming IRC message: {msg:?}");
match msg { match msg {
ClientMessage::Nick { nickname } => { ClientMessage::Nick { nickname } => {
if let Some((username, realname)) = future_username { if let Some((username, realname)) = future_username {
@ -369,7 +370,9 @@ async fn handle_incoming_message(
user_handle: &mut PlayerConnection, user_handle: &mut PlayerConnection,
writer: &mut (impl AsyncWrite + Unpin), writer: &mut (impl AsyncWrite + Unpin),
) -> Result<HandleResult> { ) -> Result<HandleResult> {
log::debug!("Incoming raw IRC message: '{buffer}'");
let parsed = client_message(buffer); let parsed = client_message(buffer);
log::debug!("Incoming IRC message: {parsed:?}");
match parsed { match parsed {
Ok((_, msg)) => match msg { Ok((_, msg)) => match msg {
ClientMessage::Ping { token } => { ClientMessage::Ping { token } => {