From 89841d034dd243733c9b0189c4c2c938d349dd67 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 1 Dec 2025 18:20:10 +0200 Subject: [PATCH] Suppress a backtrace in extension error logging (#43917) One less redundant backtrace in the logs: backtrace Release Notes: - N/A --- crates/extension_host/src/extension_host.rs | 6 +++++- crates/extension_host/src/headless_host.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/extension_host/src/extension_host.rs b/crates/extension_host/src/extension_host.rs index ecbe8c99f0f7e6c80065a230b9c00c5476e7b689..c1c598f1895f6897fd2989752f74fde077af97b3 100644 --- a/crates/extension_host/src/extension_host.rs +++ b/crates/extension_host/src/extension_host.rs @@ -1376,7 +1376,11 @@ impl ExtensionStore { wasm_extensions.push((extension.manifest.clone(), wasm_extension)) } Err(e) => { - log::error!("Failed to load extension: {e:#}"); + log::error!( + "Failed to load extension: {}, {:#}", + extension.manifest.id, + e + ); this.update(cx, |_, cx| { cx.emit(Event::ExtensionFailedToLoad(extension.manifest.id.clone())) }) diff --git a/crates/extension_host/src/headless_host.rs b/crates/extension_host/src/headless_host.rs index 1fe1905e0b89a89fd8b7304b9a175a832f3ffc29..c3a290a55a8f901553d6d2b2542d8af8bcd1665c 100644 --- a/crates/extension_host/src/headless_host.rs +++ b/crates/extension_host/src/headless_host.rs @@ -96,7 +96,7 @@ impl HeadlessExtensionStore { for extension in to_load { if let Err(e) = Self::load_extension(this.clone(), extension.clone(), cx).await { - log::info!("failed to load extension: {}, {:?}", extension.id, e); + log::info!("failed to load extension: {}, {:#}", extension.id, e); missing.push(extension) } else if extension.dev { missing.push(extension)