# Fix bug with improperly reported environment \(\#4020\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ac5f8254a2f6b17f7d956e82a57b6115a5b0e751

Requested commit: ac5f8254a2f6b17f7d956e82a57b6115a5b0e751

Commit: ac5f8254a2f6b17f7d956e82a57b6115a5b0e751

Tree: a3652509cd6a718633422c18c4556863ca42b073

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Fix bug with improperly reported environment (#4020)

When logging the edit environment, we were logging the newest
environment being sent into the EventCoalescer on the latest activity
log, when we should've been logging the environment that was associated
with the ended period within the EventCoalescer.

Release Notes:

- N/A
```

## Parents

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

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

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