fix(chapter-06): remove console logs and avoid PII in logs

↗ view on GitHub · Amal · 2026-05-24 · 91f95485

Chapter: 06 - Privacy-aware logging.

Plain-English map:
Replace ad hoc console logging with structured logger calls and remove log
lines that exposed user/document activity identifiers.

Why it matters:
Legal-document activity is sensitive. Logs often flow to third-party systems,
so they should contain only what is useful for debugging and operations.

Principle:
Minimize sensitive data. Treat logs as production data, not scratch paper.

Precedent borrowed:
Upstream PR #80 and GDPR-style data-minimization practice.

Upstream base: willchen96/mike@d39f580.
Original local commit: 9398be6.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents bfc55399
Stats 2 files changed , +217
Part of Structured logging and PII minimization

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-91f95485.md from inside the repo you want the change in.

⬇ Download capture-commit-91f95485.md