Before You Send Logs to Gemini — Strip the PII First
Dev.to AI
•
Generative AI
AI Business
All tests run on an 8-year-old MacBook Air. Android logs contain than stack traces. User IDs. Email addresses. IP addresses. numbers. Auth tokens that slipped into a debug log. Device identifiers. Before you send logcat output to any AI API - including Gemini - strip the sensitive data. Here's the filter I built into HiyokoLogcat. What logcat actually leaks Real examples from production apps I've debugged: D/Network: Connecting to 192.168.1.105:8080 I/Auth: User token: eyJhbGciOiJIUzI1NiJ9.