fix: fix all instances of not_found span instrumenting, and change the error to trace as an error

This commit is contained in:
Tamipes 2026-01-19 16:28:41 +01:00
parent 17d6c315af
commit ec71d35710

View file

@ -178,6 +178,7 @@ async fn handle_status<T: MinecraftServerHandle>(
let _pong = Packet::new(9, vec![0; 8])
.ok_or("failed to create empty pong packet?")?
.send_packet(client_stream)
.instrument(span.clone())
.await
.map_err(|_| "failed to send pong packet")?;
let _guard = span.enter();
@ -185,7 +186,7 @@ async fn handle_status<T: MinecraftServerHandle>(
match _ping {
Ok(_) => tracing::info!("sent status with error"),
Err(err) => {
tracing::warn!(err = OpaqueError::from(err).context)
tracing::error!(err = OpaqueError::from(err).context)
}
};
return Ok(());