# Log filesystem watcher lost sync only once per event \(\#57675\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6df9ae9f8f48eb5b356548d06587025a876c776b

Requested commit: 6df9ae9f8f48eb5b356548d06587025a876c776b

Commit: 6df9ae9f8f48eb5b356548d06587025a876c776b

Tree: 6a5cd11dcc2962ef37ea51aae2a2d6c4f0dc3545

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
Log filesystem watcher lost sync only once per event (#57675)

On Linux, we create a filesystem watcher recursively for every subdir.
When we get "fs watcher lost sync" events, we used to log it for every
child dir, which could results in thousands messages. This becomes
problematic when we get into a state where we get those events
repeatedly (this larger issue is to be addressed separately).

Now we log one message per parent.

Partially addresses #57422, #57042, FR-18

Release Notes:

- N/A
```

## Parents

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

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