mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-12 13:45:37 +00:00
[PR #269] [MERGED] Add option to compress log files after dumping #988
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/MPF/pull/269
Author: @mnadareski
Created: 4/3/2021
Status: ✅ Merged
Merged: 4/3/2021
Merged by: @mnadareski
Base:
master← Head:logjam📝 Commits (10+)
da0bf64Add log compression option01bf3c9Add log file compression96fa8d8Add DiscImageCreator log paths3230d59Fix options windowad5cd5bOnly encode artifacts if we're outputting JSON096a8a6Add Aaru log file paths, remove TODO in DIC4fd51dbDefault to false, for now742db4cChange default archive name1a52a3aAdd Check parameter for compression7e5952bAdd log file lsits for CleanRip and UIC📊 Changes
12 files changed (+369 additions, -82 deletions)
View changed files
📝
CHANGELIST.md(+1 -0)📝
MPF.Check/Program.cs(+9 -1)📝
MPF.Library/Aaru/Parameters.cs(+59 -14)📝
MPF.Library/CleanRIp/Parameters.cs(+29 -6)📝
MPF.Library/DD/Parameters.cs(+1 -1)📝
MPF.Library/Data/BaseParameters.cs(+9 -1)📝
MPF.Library/Data/DumpEnvironment.cs(+57 -1)📝
MPF.Library/Data/Options.cs(+9 -0)📝
MPF.Library/DiscImageCreator/Parameters.cs(+154 -48)📝
MPF.Library/MPF.Library.csproj(+1 -0)📝
MPF.Library/UmdImageCreator/Parameters.cs(+35 -10)📝
MPF/Windows/OptionsWindow.xaml(+5 -0)📄 Description
This has been a long-requested feature that we finally have room in the options menu to support. This new option allows for all files considered "log files" to be compressed into a zip file after dumping, deleting the uncompressed versions. This helps save on space and helps with submissions. This option currently defaults to disabled.
Both Aaru and DiscImageCreator currently support this, as they're the only ones that have log files and dumping support combined. This has been tested to ensure that all log files (including the dreaded new command file in DIC) are archived. Edit: As of one of the more recent commits, Check support has been added so compression can be applied after the fact. This also means that both CleanRip and UmdImageCreator both can have their logs compressed as well.
This also fixes another related issue where if users don't want to output the JSON, we shouldn't collect the artifact information. This can potentially lead to memory issues.
Fixes https://github.com/SabreTools/MPF/issues/22
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.