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

@@ -32,7 +32,7 @@ class MeloEngine:
self.close()
raise RuntimeError(f"MeloTTS failed to start: {header.get('error')}")
self.native_rate = header["rate"]
debug_log(f"melo ready native_rate={self.native_rate}", "voice_worker")
debug_log(f"melo ready native_rate={self.native_rate}", "tts")
def _read(self) -> tuple[dict, bytes]:
out = self._proc.stdout
@@ -47,7 +47,7 @@ class MeloEngine:
def synthesize(self, text: str, rate: int) -> np.ndarray:
with self._lock:
if self._proc is None or self._proc.poll() is not None:
debug_log("melo child not running, restarting", "voice_worker")
debug_log("melo child not running, restarting", "tts")
self._start()
self._proc.stdin.write((json.dumps({"text": text, "rate": rate}) + "\n").encode())
self._proc.stdin.flush()