mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
core: Fix noisy logs caused by closing the /feed browser (#496)
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
1 parent
fc460d74d3
commit
d525056190
1 file changed
+11
-4
@@ -464,23 +464,30 @@ where
|
|||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
log::warn!("Closing feed websocket that was too slow to keep up (too slow to send messages)");
|
log::debug!("Closing feed websocket that was too slow to keep up (too slow to send messages)");
|
||||||
|
break 'outer;
|
||||||
|
}
|
||||||
|
Ok(Err(soketto::connection::Error::Closed)) => {
|
||||||
break 'outer;
|
break 'outer;
|
||||||
}
|
}
|
||||||
Ok(Err(e)) => {
|
Ok(Err(e)) => {
|
||||||
log::warn!("Closing feed websocket due to error sending data: {}", e);
|
log::debug!("Closing feed websocket due to error sending data: {}", e);
|
||||||
break 'outer;
|
break 'outer;
|
||||||
}
|
}
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
match tokio::time::timeout_at(message_send_deadline, ws_send.flush()).await {
|
match tokio::time::timeout_at(message_send_deadline, ws_send.flush()).await {
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
log::warn!("Closing feed websocket that was too slow to keep up (too slow to flush messages)");
|
log::debug!("Closing feed websocket that was too slow to keep up (too slow to flush messages)");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Ok(Err(soketto::connection::Error::Closed)) => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Ok(Err(e)) => {
|
Ok(Err(e)) => {
|
||||||
log::warn!("Closing feed websocket due to error flushing data: {}", e);
|
log::debug!("Closing feed websocket due to error flushing data: {}", e);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
|
|||||||
Reference in new issue
Block a user