aboutsummaryrefslogtreecommitdiff
path: root/app/ui/hub.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-30 18:49:32 -0400
committerhistoria <historiavg@proton.me>2026-08-30 18:49:32 -0400
commit93f106aac2d6411c80a911adac62cd12f80e58be (patch)
tree5db8a2ff27f0d06ef313b3cf9ab84bf02f74479f /app/ui/hub.py
parentd31e9149c7f141b2d3c14a79e9f067d524c8c420 (diff)
downloadtts-audiobook-generator-93f106aac2d6411c80a911adac62cd12f80e58be.tar.gz
feat: output log path when audiobook generation fails
Diffstat (limited to 'app/ui/hub.py')
-rw-r--r--app/ui/hub.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/ui/hub.py b/app/ui/hub.py
index ef41d0b..fa05685 100644
--- a/app/ui/hub.py
+++ b/app/ui/hub.py
@@ -26,7 +26,6 @@ import json
import shutil
import sys
import urllib.parse
-from datetime import datetime
from pathlib import Path
from typing import Callable, Optional, Tuple
@@ -1803,7 +1802,7 @@ def _prepare_run_config(backend: str, kwargs: dict
info = get(backend)
if info is not None:
label = info.label
- log_path = str(LOGS_FOLDER / f"audiobook_{datetime.now():%Y%m%d}.log")
+ log_path = str(logging_kit.stream_path("audiobook", LOGS_FOLDER))
# The run view points failures at this file, so make sure it exists
# from the moment a run starts — even when the run dies before the
# converter's setup_logging creates it.