mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-28 01:24:17 +00:00
Suppress a backtrace in extension error logging (#43917)
One less redundant backtrace in the logs: <img width="2032" height="1161" alt="backtrace" src="https://github.com/user-attachments/assets/f03192b4-1b9c-4fa1-809d-9e826452f711" /> Release Notes: - N/A
This commit is contained in:
parent
7aa610e24f
commit
89841d034d
2 changed files with 6 additions and 2 deletions
|
|
@ -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()))
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue