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());
|
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 } => {
|
||||||
|
|
Loading…
Reference in New Issue