From d487996281f71ccd3034dd708fa099057e528b42 Mon Sep 17 00:00:00 2001 From: historia Date: Fri, 28 Aug 2026 03:16:14 -0400 Subject: feat: unified logging with logging_kit.py --- audiobook.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'audiobook.py') diff --git a/audiobook.py b/audiobook.py index 7bdd989..0d0f5d7 100755 --- a/audiobook.py +++ b/audiobook.py @@ -36,6 +36,9 @@ sys.path.insert(0, str(APP_DIR)) # runs only when audiobook.py is executed as a script, from main() below. from backends import envs as _envs # noqa: I001 +# app/logs owner: naming conventions and startup pruning (stdlib-only). +import logging_kit # noqa: I001 + from converter import config from converter import converter as _converter_mod from converter.clients import ( @@ -198,6 +201,9 @@ def main() -> None: # requirements.txt) first if needed. A no-op when already there. Done # here rather than at import time so importing this module is light. _envs.bootstrap(__file__) + # Trim stale stream/artifact logs once per app start (server logs are + # never touched); see app/logging_kit.py. + logging_kit.prune_logs() # No arguments + interactive terminal -> the TUI hub (set up backends # and process the input directory end-to-end). Anything else is the # scriptable argparse CLI. -- cgit v1.2.3