diff --git a/crates/ruff_server/src/message.rs b/crates/ruff_server/src/message.rs index 1a14d0cbbad0e6..b535ff0372ad9c 100644 --- a/crates/ruff_server/src/message.rs +++ b/crates/ruff_server/src/message.rs @@ -23,7 +23,7 @@ pub(crate) fn init_messenger(client_sender: &ClientSender) { params: serde_json::to_value(lsp_types::ShowMessageParams { typ: lsp_types::MessageType::ERROR, message: format!( - "The Ruff language server exited with a panic: {panic_info}" + "The Ruff language server exited with a panic. See the logs for more details." ), }) .unwrap_or_default(), @@ -32,10 +32,7 @@ pub(crate) fn init_messenger(client_sender: &ClientSender) { } let backtrace = std::backtrace::Backtrace::force_capture(); - #[allow(clippy::print_stderr)] - { - eprintln!("{panic_info}\n{backtrace}"); - } + tracing::error!("{panic_info}\n{backtrace}"); })); }