Skip to content

fix(core): redact transcription text from INFO logs#45

Merged
missuo merged 1 commit into
missuo:mainfrom
erning:fix/privacy-log-asr-text
Apr 6, 2026
Merged

fix(core): redact transcription text from INFO logs#45
missuo merged 1 commit into
missuo:mainfrom
erning:fix/privacy-log-asr-text

Conversation

@erning

@erning erning commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

log::info! at lib.rs:761 was printing the full raw ASR text at the default INFO level. For a voice input tool this exposes everything the user dictates to the terminal, Xcode console, or any environment collecting stderr.

  • Move the raw transcription text to DEBUG level
  • Keep an INFO log that records only the text length and session ID for diagnostics

Test plan

  • cargo test --workspace passes
  • cargo clippy --workspace --all-targets clean
  • Run a dictation session with default log level — no user text in logs
  • Set RUST_LOG=debug — full text visible at debug level

Move raw ASR text to DEBUG level to prevent user dictation content
from appearing in default log output. Log only text length at INFO
for diagnostics.

@missuo missuo left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Simple and correct privacy improvement — moving raw transcription text from INFO to DEBUG level. The text length at INFO is sufficient for diagnostics.

@missuo missuo merged commit cc63933 into missuo:main Apr 6, 2026
@erning erning deleted the fix/privacy-log-asr-text branch April 7, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants