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:
2026-06-30 03:49:35 -04:00
parent 595f0363b3
commit ece9a6b9ca
4 changed files with 15 additions and 4 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ and emit; their records flow into the handlers `log_setup` wired.
## Install
```
log_setup @ git+ssh://git@git.rethinkstudios.io/rethink-public/log_setup.git@v0.4.0
log_setup @ git+ssh://git@git.rethinkstudios.io/rethink-public/log_setup.git@v0.4.1
```
No dependencies — stdlib only.
Drop the `@v0.4.0` suffix from the line above to install the latest unpinned.
Drop the `@v0.4.1` suffix from the line above to install the latest unpinned.
## Quick start