forked from lavina/lavina
tune irc logging
This commit is contained in:
parent
fc9c45b627
commit
daf05869a3
|
@ -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<HandleResult> {
|
||||
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 } => {
|
||||
|
|
Loading…
Reference in New Issue