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

Only keep up to 5 recent logs of runs of plugins #525

Merged

Conversation

suchmememanyskill
Copy link
Contributor

Please tick as appropriate:

  • I have tested this code on a steam deck or on a PC
  • My changes generate no new errors/warnings
  • This is a bugfix/hotfix
  • This is a new feature

Description

Currently, decky plugins utilising decky_plugin.py endlessly write logs to the same file, eventually leading to gigantic log files. This fixes that by naming the log file after the current time. Effectively, every time a plugin is ran a new log file is created. This PR also deletes any .log file older than the 5 newest files. Example new log name: 2023-08-11 14.50.16.log

@PartyWumpus
Copy link
Member

LGTM and works well on deck & my pc, I assume you tested it on windows, because I'm not going to.

@PartyWumpus PartyWumpus merged commit dd130db into SteamDeckHomebrew:main Aug 11, 2023
4 checks passed
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.

None yet

2 participants