Skip to content

fix(reliability): add error logging to 25+ silent catch blocks across the codebase#887

Open
Siddh2024 wants to merge 1 commit into
shouri123:mainfrom
Siddh2024:fix/877-silent-catch-blocks
Open

fix(reliability): add error logging to 25+ silent catch blocks across the codebase#887
Siddh2024 wants to merge 1 commit into
shouri123:mainfrom
Siddh2024:fix/877-silent-catch-blocks

Conversation

@Siddh2024

Copy link
Copy Markdown
Contributor

Reliability fix: Add error logging to 25+ silent catch blocks across the codebase (#877)

Problem:
Over 25 locations across the codebase had empty catch blocks or .catch(() => {}) patterns that silently swallowed errors, making production debugging impossible. Critical failures in audio capture, message passing, state synchronization, and storage operations were invisible.

Changes by file:

src/background.ts (14 fixes):

  • broadcastStateUpdate(): Added logging to state broadcast and content script catch blocks
  • ElevenLabs/Whisper/refinement/summarization/late-joiner usage tracking: Added debug logging
  • OFFSCREEN_RESUME_RECORDING notification: Added debug logging
  • Offscreen ping/drain/poll retry loops: Added debug logging
  • SESSION_ENDED message delivery: Added debug logging
  • onSuspend guard flush: Added debug logging
  • isMeetHostname URL parsing: Added debug logging
  • Tab URL handler: Added debug logging

src/offscreen.ts (4 fixes):

  • relay() message send: Added debug logging
  • sampleAndSendWaveform(): Added debug logging
  • handleRecorderDataAvailable(): Added debug logging for track-end notifications
  • Track ended handler: Added debug logging

src/content.ts (3 fixes):

  • Participant polling in setInterval: Added debug logging
  • publishActiveSpeaker(): Added debug logging
  • beforeunload SAVE_SESSION: Added debug logging for both promise rejection and sync error

src/popup.ts (2 fixes):

  • requestPopupMicrophonePermission(): Added error context to existing warn log
  • Initial GET_STATE call: Added debug logging

src/dashboard.ts (3 fixes):

  • isMeetHostname(): Added debug logging
  • requestDashboardMicrophonePermission(): Added error context to existing warn log
  • Clipboard copy handler: Added debug logging
  • Initial GET_STATE call: Added debug logging

src/meetingTabs.ts (2 fixes):

  • getMeetingIdFromUrl(): Added debug logging
  • resolveDetectedMeetTab(): Added debug logging

src/popupCapture.ts (1 fix):

  • Microphone permission request: Added debug logging before fallback

src/dashboardCapture.ts (1 fix):

  • Microphone permission request: Added debug logging before fallback

Benefits:

  • Production debugging is now possible with visible error context
  • All errors logged at console.debug level (no production noise)
  • Each log includes [LateMeet] prefix for easy filtering
  • Error messages provide specific context about the operation that failed

…base

Replaces every empty catch {} and .catch(() => {}) with
meaningful console.debug or console.warn calls that include
the error context and a [LateMeet] prefix.

Affected files:
- background.ts: 14 catch blocks (state broadcast, usage tracking,
  offscreen communication, session management)
- offscreen.ts: 4 catch blocks (relay, waveform, track-end notifications)
- content.ts: 3 catch blocks (participant polling, active speaker,
  session save on unload)
- popup.ts: 2 catch blocks (microphone permission, initial state)
- dashboard.ts: 3 catch blocks (hostname parsing, microphone, clipboard)
- meetingTabs.ts: 2 catch blocks (URL parsing, tab resolution)
- popupCapture.ts: 1 catch block (microphone permission)
- dashboardCapture.ts: 1 catch block (microphone permission)

This makes production debugging possible by surfacing errors
that were previously invisible.
@Siddh2024
Siddh2024 requested a review from shouri123 as a code owner July 20, 2026 16:29
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Thank You for Contributing to Late-Meet

Please ensure that:

  • the issue was assigned to you before opening this PR
  • the PR references the related issue
  • your changes follow repository contribution guidelines
  • the project builds successfully before submission

Unassigned, duplicate, or low-quality PRs may be closed.

Thank you for contributing 💙

@github-actions github-actions Bot added gssoc Official GSSoC contribution issue gssoc:approved GSSoC: PR approved and scored bug Something isn't working size/M type:code Type: Code change security-review Requires security review before merge needs-issue and removed bug Something isn't working size/M labels Jul 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Thank you @Siddh2024 for your contribution to Late-Meet!

⚠️ Warning: This PR does not seem to link to an open issue. Please edit the PR description to include Closes #XX to ensure your contribution counts for GSSoC points.

Please review any automated suggestions or code review comments that may appear below! We will review your PR as soon as possible!


Please consider starring the repository ⭐ to show your support!

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Siddh2024, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7fa1f89f-286e-4340-9aab-9b88db276dd0

📥 Commits

Reviewing files that changed from the base of the PR and between d216444 and 195cd02.

📒 Files selected for processing (8)
  • src/background.ts
  • src/content.ts
  • src/dashboard.ts
  • src/dashboardCapture.ts
  • src/meetingTabs.ts
  • src/offscreen.ts
  • src/popup.ts
  • src/popupCapture.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved and scored gssoc Official GSSoC contribution issue needs-issue security-review Requires security review before merge type:code Type: Code change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant