reduce logging
parent
40e4a30166
commit
4548f9daee
|
@ -73,7 +73,7 @@ impl App {
|
|||
}
|
||||
Poll::Ready(Ok(None)) => client.closed = true,
|
||||
Poll::Ready(Ok(Some(ToServer::ChatLine { line, sequence }))) => {
|
||||
tracing::info!(id = client.id, ?line);
|
||||
tracing::debug!(id = client.id, ?line);
|
||||
if sequence != client.sequence {
|
||||
tracing::error!(
|
||||
expected = client.sequence,
|
||||
|
@ -82,6 +82,7 @@ impl App {
|
|||
);
|
||||
return Poll::Ready(Err(anyhow!("Sequence mismatch")));
|
||||
}
|
||||
tracing::info!(?sequence, id = client.id);
|
||||
client.sequence += 1;
|
||||
new_messages.push(Rc::new(ToClient::ChatLine {
|
||||
id: client.id,
|
||||
|
@ -151,7 +152,7 @@ impl Client {
|
|||
};
|
||||
|
||||
cx.waker().wake_by_ref();
|
||||
tracing::info!("Got network data");
|
||||
tracing::debug!("Got network data");
|
||||
|
||||
let frame = match frame {
|
||||
Err(err) => return Poll::Ready(Err(err).context("Network framing decode error")),
|
||||
|
|
Loading…
Reference in New Issue