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

@@ -81,9 +81,12 @@ STT, LLM and TTS lines go to `stt`, `llm`, `tts` by their worker category), `bro
order), the app version and a short PC summary (OS, CPU count, memory); `None` without an error.
When it is over 2,000 characters (Discord's message limit) the screen offers a download instead.
- `export_zip(from, to, out)`: the log files of those days in a zip, at most 10 MB (Discord's file
limit): when larger, the oldest lines are left out and a note says so.
limit): when larger, the oldest lines by the time they were logged, across every tab's file, are
left out and a note says how many.
- Every copy and export runs through `redact`: each stored secret's value, and anything shaped like
a Discord bot token, becomes `[비밀값]`.
a Discord bot token (also with sentence dots around it), becomes `[비밀값]`.
- Errors the voice worker reports to the app (`error` messages: code and request id) are always
logged, debug logging or not, so the log screen and the error report show them.
## Tests