feat: polish the OpaqueError get_span_trace function looks

This commit is contained in:
Tamipes 2026-05-29 11:07:59 +02:00
parent 1bce912a1a
commit 0e2afd0772
3 changed files with 24 additions and 15 deletions

View file

@ -189,7 +189,7 @@ impl MinecraftAPI<Server> for McApi {
drop(guard);
if let Err(err) = server.stop().await {
tracing::error!(
trace = err.get_span_trace(),
trace = %err.print_span_trace(),
err = err.context,
msg = "failed to stop server"
);