feat: polish logging if the server is unavailable
This commit is contained in:
parent
1229127101
commit
1bce912a1a
3 changed files with 8 additions and 8 deletions
|
|
@ -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})"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue