# Stop showing backtraces in default logging \(\#54660\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5f684799377dc2a09055468939038073ea60c315)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5f684799377dc2a09055468939038073ea60c315

Requested commit: 5f684799377dc2a09055468939038073ea60c315

Commit: 5f684799377dc2a09055468939038073ea60c315

Tree: fcdb9f6f31da2d8ff3b33046ad1c118efe574632

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Stop showing backtraces in default logging (#54660)

When using `.log_err()` or `.detach_and_log_err(cx)` or similar.

See also https://github.com/zed-industries/zed/pull/36404,
https://github.com/zed-industries/zed/pull/46383,
https://github.com/zed-industries/zed/pull/44896,
https://github.com/zed-industries/zed/pull/43917 and many more.

Before, a
https://github.com/zed-industries/zed/blob/62bd61a6793c5f983fbc1700825208f19d780d52/crates/languages/src/go.rs#L568
line would show a backtrace even for `.context("no cached binary")?;`
case, same as many other usages around the code:

<img width="2032" height="1162" alt="before"
src="https://github.com/user-attachments/assets/ef2188b3-74c9-4c86-82b8-9fdaed3c26ae"
/>

After:

<img width="1896" height="157" alt="after"
src="https://github.com/user-attachments/assets/a1067d9f-61f4-4833-aeab-9f1042d2514a"
/>



To show a backtrace as before, use `log_err_with_backtrace`.

Release Notes:

- Improved Zed's log output on errors
```

## Parents

- [85084b83878d3e9b2542e6b06e3993820de0fde8](https://git.cafe/gitcafe/zed/commit/85084b83878d3e9b2542e6b06e3993820de0fde8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5f684799377dc2a09055468939038073ea60c315?format=markdown)
