Skip to content

fix(telemetry): log a warning when the audio recording can't be read at upload time - #6833

Open
dubbl-a wants to merge 1 commit into
livekit:mainfrom
dubbl-a:fix/log-audio-recording-read-failure
Open

fix(telemetry): log a warning when the audio recording can't be read at upload time#6833
dubbl-a wants to merge 1 commit into
livekit:mainfrom
dubbl-a:fix/log-audio-recording-read-failure

Conversation

@dubbl-a

@dubbl-a dubbl-a commented Aug 13, 2026

Copy link
Copy Markdown

Fixes #6832.

A failed read of the local audio recording during session-report upload is currently swallowed bare, so the upload succeeds with the audio multipart part silently missing and nothing in the logs. This keeps the existing behavior (the report still uploads without audio rather than failing outright) and adds a warning naming the path and the exception, matching the style of the retry warning in the same function.

A runnable offline repro demonstrating the silent path is in #6832; re-running it against this branch shows the warning firing with the path and the underlying errno. Happy to add a unit test asserting the warning fires if you'd like one in-tree.

🤖 Generated with Claude Code

…at upload time

A failed read of the local audio recording during session-report upload
was swallowed bare, so the upload succeeded with the audio multipart part
silently missing and nothing in the logs. Keep the graceful degradation
but log the path and the exception, matching the retry warning below.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dubbl-a
dubbl-a requested a review from a team as a code owner August 13, 2026 01:47
@CLAassistant

CLAassistant commented Aug 13, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@longcw longcw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something nit:

"failed to read audio recording for session report upload, "
"uploading without the audio part (path=%s): %s",
report.audio_recording_path,
e,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use exc_info=e instead of %s?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

telemetry: failed audio-recording read is silently swallowed during session-report upload (no log, audio part just missing)

3 participants