# Keep the previous debug log when the current one can't move · dara/icarus

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

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

Visibility: public

Requested revision: 840c8428ba207c7f49d06cbe335deaf91686eef0

Requested commit: 840c8428ba207c7f49d06cbe335deaf91686eef0

Commit: 840c8428ba207c7f49d06cbe335deaf91686eef0

Tree: 3044f9af979408119cd2da17ce373f780490a6bc

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Keep the previous debug log when the current one can't move

Rotation deleted icarus_debug.log.1 before moving the current log onto
it, so a move that failed (another copy of the app holding the file open)
lost the previous log. File.rename replaces the target in one step, so the
delete goes.

```

## Parents

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

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