Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Suppress a backtrace in extension error logging (#43917)

Kirill Bulatov89841d034dd2
diff --git a/crates/extension_host/src/extension_host.rs b/crates/extension_host/src/extension_host.rs
index ecbe8c99f0f..c1c598f1895 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 1fe1905e0b8..c3a290a55a8 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)