aboutsummaryrefslogtreecommitdiff
path: root/app/converter/converter.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/converter/converter.py
parentd31e9149c7f141b2d3c14a79e9f067d524c8c420 (diff)
downloadtts-audiobook-generator-93f106aac2d6411c80a911adac62cd12f80e58be.tar.gz
feat: output log path when audiobook generation fails
Diffstat (limited to 'app/converter/converter.py')
-rw-r--r--app/converter/converter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/converter/converter.py b/app/converter/converter.py
index a9ea7eb..bd5e477 100644
--- a/app/converter/converter.py
+++ b/app/converter/converter.py
@@ -8,7 +8,6 @@ import sys
import threading
import time
from collections import Counter
-from datetime import datetime
from pathlib import Path
from typing import Callable, Dict, List, Optional, Tuple
@@ -89,7 +88,7 @@ def setup_logging(debug: bool = False, console: bool = True) -> None:
"""
LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
file_handler = logging.FileHandler(
- LOGS_FOLDER / f"audiobook_{datetime.now():%Y%m%d}.log",
+ logging_kit.stream_path("audiobook", LOGS_FOLDER),
encoding="utf-8",
)
file_handler.setLevel(logging.DEBUG if debug else logging.INFO)