fix: retention dead when name contains a directory (basename the stem)
rolled files land in log_dir under their basename (the namer/rotate_on_start basename them), but prune()/retier() globbed the un-basenamed name. a name like 'sub/run' matched nothing, so old .log/.gz files piled up forever (slow disk leak; the live file was fine). basename the stem at the top of both prune() and retier(). regression-verified with name='sub/run' (10 retained vs 12/dead before). bump v0.4.0 -> v0.4.1 Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "log_setup"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
description = "stdlib app-entry-point logging setup: live run.log, rotation, gzip, retention, consistent format"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = []
|
||||
|
||||
Reference in New Issue
Block a user