better compression

Compress old logs at startup
Added back the .log suffix
This commit is contained in:
GeoffreyCoulaud
2023-06-29 15:26:21 +02:00
parent 0a89061218
commit 2311f3dff7
2 changed files with 30 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ def setup_logging():
app_log_level = os.environ.get("LOGLEVEL", profile_app_log_level).upper()
lib_log_level = os.environ.get("LIBLOGLEVEL", profile_lib_log_level).upper()
log_filename = shared.cache_dir / "cartridges" / "logs" / "cartridges.xz"
log_filename = shared.cache_dir / "cartridges" / "logs" / "cartridges.log"
config = {
"version": 1,