fix: thread live_stem into rotate_on_start's tiered retier call

the tiered on_start path called retier without live_stem, so on a project whose history
stem differs from the live stem (history_name set), legacy live-named rolls (run.<stamp>.log)
never matched _is_rolled_name and accumulated forever - every OTHER retier/prune call site
(make_rotator, attach_rolling) already threaded live_stem, this one was missed. pass it
through like the others; retier dedupes the live_stem==stem case, so the default path is
unchanged and a foreign same-dir file is still spared.

Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
2026-07-06 21:03:46 -04:00
parent cb8acac76f
commit 3dd3a8842c
+1 -1
View File
@@ -222,7 +222,7 @@ def rotate_on_start(
else: else:
_move(live_path, dest) _move(live_path, dest)
if tiered: if tiered:
retier(log_dir, stem, keep_uncompressed or 0, keep_compressed or 0) retier(log_dir, stem, keep_uncompressed or 0, keep_compressed or 0, live_stem)
def retier(log_dir: str, stem: str, keep_uncompressed: int, keep_compressed: int, def retier(log_dir: str, stem: str, keep_uncompressed: int, keep_compressed: int,