Improve Marvel API error logging with detailed context #54

Merged
Ghost merged 2 commits from refs/pull/54/head into main 2025-10-31 13:57:42 +00:00
Ghost commented 2025-10-31 13:53:12 +00:00 (Migrated from codeberg.org)
  • Add structured error logging with timestamps, status codes, and URLs
  • Capture and log Marvel API response body for HTTP errors
  • Include rate limit headers in error logs for monitoring
  • Categorize errors (Network, HTTP, JSON Parse) for easier debugging
  • Replace generic "oh no" message with actionable error details
  • Add request context (week parameter, URL) to all error logs

This improves debugging capabilities and provides better visibility into API failures, rate limiting, and authentication issues.

- Add structured error logging with timestamps, status codes, and URLs - Capture and log Marvel API response body for HTTP errors - Include rate limit headers in error logs for monitoring - Categorize errors (Network, HTTP, JSON Parse) for easier debugging - Replace generic "oh no" message with actionable error details - Add request context (week parameter, URL) to all error logs This improves debugging capabilities and provides better visibility into API failures, rate limiting, and authentication issues.
Sign in to join this conversation.
No description provided.