Skip to content

Latest commit

 

History

History
91 lines (61 loc) · 2.72 KB

File metadata and controls

91 lines (61 loc) · 2.72 KB

Debug Mode

Enable verbose logging to diagnose issues like "no audio detected" or transcription failures.

Enable Debug Logging

Option 1: Command Line

# macOS
/Applications/OpenWhispr.app/Contents/MacOS/OpenWhispr --log-level=debug

# Windows
OpenWhispr.exe --log-level=debug

Option 2: Environment File

Add to your .env file and restart:

OPENWHISPR_LOG_LEVEL=debug

Env file locations:

  • macOS: ~/Library/Application Support/OpenWhispr/.env
  • Windows: %APPDATA%\OpenWhispr\.env
  • Linux: ~/.config/OpenWhispr/.env

Log File Locations

  • macOS: ~/Library/Application Support/OpenWhispr/logs/debug-*.log
  • Windows: %APPDATA%\OpenWhispr\logs\debug-*.log
  • Linux: ~/.config/OpenWhispr/logs/debug-*.log

What Gets Logged

Stage Details
FFmpeg Path resolution, permissions, ASAR unpacking
Audio Recording Permission requests, chunk sizes, audio levels
Audio Processing File creation, Whisper command, process output
IPC Messages between renderer and main process
Agent Mode Streaming responses, conversation management, model selection
Meeting Detection Process monitoring, audio activity, calendar event matching
Meeting Transcription WebSocket connection, Realtime API session, audio buffering
Google Calendar OAuth flow, token refresh, event sync
Media Control Pause/resume events, player detection (MediaRemote/GSMTC/MPRIS2)
Audio Storage File retention, cleanup cycles, storage usage

Common Issues

"No Audio Detected"

Look for:

  • maxLevel < 0.01 → Audio too quiet
  • Audio appears to be silent → Microphone issue
  • FFmpeg not available → Path resolution failed

Transcription Fails

Look for:

  • Whisper stderr: → whisper.cpp/FFmpeg errors
  • Process closed with code: [non-zero] → Process failure
  • Failed to parse Whisper output → Invalid JSON

Permission Issues

Look for:

  • Microphone Access Denied
  • isExecutable: false → FFmpeg permission issue

Sharing Logs

When reporting issues:

  1. Enable debug mode and reproduce the issue
  2. Locate the log file
  3. Redact any sensitive information
  4. Include relevant log sections in your issue report

Disable Debug Mode

Debug mode is off by default. To ensure it's disabled:

  • Remove --log-level=debug from command
  • Remove OPENWHISPR_LOG_LEVEL from .env