fix(app): log hub masks dotted tokens, keeps worker errors and drops the oldest lines by time

- redact: a token with sentence dots around it is masked too.
- Worker error messages are always logged (code and id), so the log screen
  and the error report show them without debug logging.
- The voice worker logs with stt, llm and tts categories, so its lines land
  in those tabs.
- The zip leaves out the oldest lines by the time they were logged, across
  every tab's file, not by file name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-12 13:43:01 +09:00
parent 390f6f0b86
commit eb0fa2f159
13 changed files with 143 additions and 37 deletions

View File

@@ -120,9 +120,9 @@ class SttScheduler:
texts, error = [""] * len(batch), f"{type(e).__name__}: {e}"
ms = int((time.perf_counter() - t0) * 1000)
debug_log(f"stt batch kind={kind} size={len(batch)} beam={batch[0].opts.beam} ms={ms}"
+ (f" error={error}" if error else ""), "voice_worker")
+ (f" error={error}" if error else ""), "stt")
for job, text in zip(batch, texts):
try:
job.callback(SttResult(text, ms, error))
except Exception as e: # pragma: no cover - a broken session must not stop the loop
debug_log(f"stt callback failed: {type(e).__name__}: {e}", "voice_worker")
debug_log(f"stt callback failed: {type(e).__name__}: {e}", "stt")