feat: polish logging if the server is unavailable

This commit is contained in:
Tamipes 2026-05-29 10:42:24 +02:00
parent 1229127101
commit 1bce912a1a
3 changed files with 8 additions and 8 deletions

View file

@ -12,11 +12,7 @@ use tracing::Instrument;
use crate::{
mc_server::{sanitize_addr, MinecraftAPI, MinecraftServerHandle, ServerDeploymentStatus},
packets::{
clientbound::status::StatusTrait,
serverbound::handshake::{self},
SendPacket,
},
packets::{clientbound::status::StatusTrait, SendPacket},
OpaqueError,
};
@ -438,6 +434,7 @@ impl fmt::Debug for ServerDeploymentStatus {
Self::Starting => write!(f, "Starting"),
Self::PodOk => write!(f, "PodOk"),
Self::Offline => write!(f, "Offline"),
Self::Unavailable(s) => write!(f, "Unavailable ({s})"),
}
}
}