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:
@@ -50,7 +50,7 @@ def is_addressed(base_url: str, model: str, names: Sequence[str], text: str,
|
||||
word = (raw or "").strip().lower().lstrip("\"'*").split()
|
||||
answer = word[0].rstrip(".,!\"'*") if word else ""
|
||||
result = True if answer == "yes" else False if answer == "no" else None
|
||||
debug_log(f"judge addressed -> {result}", "voice_worker")
|
||||
debug_log(f"judge addressed -> {result}", "llm")
|
||||
return result
|
||||
|
||||
|
||||
@@ -67,8 +67,8 @@ def rank_requests(base_url: str, model: str, texts: Sequence[str],
|
||||
if 0 <= i < len(texts) and i not in order:
|
||||
order.append(i)
|
||||
if not order:
|
||||
debug_log(f"judge rank candidates={len(texts)} -> none", "voice_worker")
|
||||
debug_log(f"judge rank candidates={len(texts)} -> none", "llm")
|
||||
return None
|
||||
order += [i for i in range(len(texts)) if i not in order]
|
||||
debug_log(f"judge rank candidates={len(texts)} -> first={order[0] + 1}", "voice_worker")
|
||||
debug_log(f"judge rank candidates={len(texts)} -> first={order[0] + 1}", "llm")
|
||||
return order
|
||||
|
||||
Reference in New Issue
Block a user