Skip to content

[BUG] Checkrr overwrites the log file on each run #113

@sjthespian

Description

@sjthespian

Describe the bug
On each run of checkrr it truncates the log file and starts from scratch. This means that in the event of an error there is no record of what happened unless you happen to be tailing the log file at the time it happens.

To Reproduce
Steps to reproduce the behavior:

  1. Run checkrr
  2. Tail the log file
  3. Restart checkrr
  4. See the message tail: checkrr.log: file truncated

Expected behavior
Logs should persist a restart of checkrr. The log file should be opened in append, not create.

Desktop (please complete the following information):

  • OS: MacOS, Linux
  • Browser: N/A
  • checkrr Version: 3.4.0

Additional context
Another option would be to rotate the log file if it exists, but that might be harder to manage in the log run for the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions