Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append logs if they exist, otherwise create #211

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Freyert
Copy link

@Freyert Freyert commented Sep 22, 2024

Small change, but I hope it helps people improve lemurs and debug more easily. For some reason I've never been able to log back in after a hibernate, but I could never debug it because the logs kept on getting overwritten on restart.

This change opens the logs in append mode, but keeps the create if non-existant as well.

https://doc.rust-lang.org/std/fs/struct.OpenOptions.html

@Freyert
Copy link
Author

Freyert commented Sep 22, 2024

The clippy errors are not related to my change :)

I don't feel particularly devoted to this change and I'm bad at responding so if you want to change or tweak it please feel free. Otherwise just merge it in if you're happy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant