# Suppress error logs from \`CopilotCompletionProvider\` when Copilot is disabled \(\#9826\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9604b22d980e4b595d91a2d1ee7221835c1c1e0a

Requested commit: 9604b22d980e4b595d91a2d1ee7221835c1c1e0a

Commit: 9604b22d980e4b595d91a2d1ee7221835c1c1e0a

Tree: e737ff03d3f2bd23697f96d569eb9b2d0616b20b

Author: Marshall Bowers

Committer: GitHub

## Message

````
Suppress error logs from `CopilotCompletionProvider` when Copilot is disabled (#9826)

This PR fixes some noisy error logs from the `CopilotCompletionProvider`
when Copilot is disabled entirely via the settings.

I have the following in my settings file:

```json
{
  "features": {
    "copilot": false
  },
}
```

After #9777 I started seeing my Zed logs getting filled up with messages
like this:

```
[2024-03-26T14:33:09-04:00 ERROR util] crates/copilot_ui/src/copilot_completion_provider.rs:206: copilot is disabled
```

Release Notes:

- N/A
````

## Parents

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

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