# Cap the debug log at 1 MB · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/4d200c8a7c545ebc6c36c219361423d99f47c815)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 4d200c8a7c545ebc6c36c219361423d99f47c815

Requested commit: 4d200c8a7c545ebc6c36c219361423d99f47c815

Commit: 4d200c8a7c545ebc6c36c219361423d99f47c815

Tree: 598ae2576adf0e9655e35c009119903c891b068d

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Cap the debug log at 1 MB

icarus_debug.log was appended to on every launch and never trimmed; one
install on our PC had reached 2.6 MB in three months and was growing
faster each week. At launch, and whenever a write takes it past 1 MB, the
log now moves to icarus_debug.log.1, replacing the one there, and a fresh
log starts. Together the two stay near 2 MB.

```

## Parents

- [c2ddf79d7f5d83519e098e151021acdf34a9c04b](https://git.cafe/dara/icarus/commit/c2ddf79d7f5d83519e098e151021acdf34a9c04b?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/4d200c8a7c545ebc6c36c219361423d99f47c815?format=markdown)
