diff options
| author | historia <historiavg@proton.me> | 2026-08-28 03:16:14 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-28 03:16:14 -0400 |
| commit | d487996281f71ccd3034dd708fa099057e528b42 (patch) | |
| tree | 989d9f40f5c2dbb03e1cf570f2c463f43cf5ac76 /app/backends/common.py | |
| parent | 5c3db8f500ff206f3a675d8f4184cb0d61f94804 (diff) | |
| download | tts-audiobook-generator-d487996281f71ccd3034dd708fa099057e528b42.tar.gz | |
feat: unified logging with logging_kit.py
Diffstat (limited to 'app/backends/common.py')
| -rw-r--r-- | app/backends/common.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/backends/common.py b/app/backends/common.py index 4c768b8..d25a03e 100644 --- a/app/backends/common.py +++ b/app/backends/common.py @@ -17,6 +17,8 @@ import urllib.parse from pathlib import Path from typing import Dict, List, Optional, Set, Tuple +import logging_kit + # Messages queued while the TUI is on screen, printed to the real console # after the curses session ends (see ui.hub.run). Build/setup steps that # fail inside the TUI record here so the user gets a copy-pastable command @@ -32,8 +34,9 @@ TTS_ROOT = Path(__file__).resolve().parent.parent.parent # The single "everything else" directory under TTS_ROOT. APP_DIR = TTS_ROOT / "app" -# app/logs — build/server/conversion logs (already gitignored). -LOG_DIR = APP_DIR / "logs" +# app/logs — build/server/conversion logs (already gitignored). Naming and +# retention policy lives in logging_kit (streams vs. timestamped artifacts). +LOG_DIR = logging_kit.LOG_DIR # The project's sample-voice directory: .wav files dropped here are offered # as the default source when a setup/configure wizard asks for a wav |
