# gpui_linux: Prevent panic while reporting Wayland errors \(\#63159\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a49de953a850f7ee1f5d847e7908733c07e516ee

Requested commit: a49de953a850f7ee1f5d847e7908733c07e516ee

Commit: a49de953a850f7ee1f5d847e7908733c07e516ee

Tree: 54c3485b160fb751a6baefc87ee977d97ec956e4

Author: Cole Miller

Committer: GitHub

## Message

```
gpui_linux: Prevent panic while reporting Wayland errors (#63159)

`wayland-backend` falls back to `eprintln!` when its optional `log`
feature is disabled. If a Wayland connection fails while standard error
is unavailable, that fallback panics while trying to report the original
error.

Closes ZED-8BW

Enable the existing `log` feature on `gpui_linux`'s direct
`wayland-backend` dependency. `gpui_linux` already depends on the `log`
facade, so this introduces no new logging system; it routes backend
errors through the configured logger and avoids the secondary
standard-error panic.

Testing performed:

Release Notes:

- Fixed a Linux crash when reporting a Wayland connection error while
standard error is unavailable.
```

## Parents

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

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