DocHub
How reports bypass log settings, storage location, and error handling behavior

Logging & Error Handling

Logging Behavior

  • user_reports is classified as a critical log type
  • Reports bypass the user’s “Logs” setting — sent even if user disabled logs
  • Uses forceLog: true parameter to ensure delivery
  • Always sent regardless of user preferences

Storage

Reports are stored in the Supabase app_logs table:

Field Value
Table public.app_logs
Filter log_type = 'user_reports'
Retention Stored indefinitely

Error Handling

Check Behavior
User not logged in Report blocked — requires active session
No user_id in profile Report blocked — validates user_id exists
Send success Shows success snackbar to user
Send failure Shows failure snackbar to user
Network timeout 5-second timeout to prevent blocking UI