feat(thumbnails): log ffmpeg output on failure #22

Merged
gravityfargo merged 1 commit from feat/1-ffmpeg-logging-v2 into main 2026-05-03 17:34:09 +00:00
Owner

Summary

Replaces #16 — that PR's branch ran the old (broken) workflow; this one is fresh off the new main with the fixed CI pipeline (#21).

Closes #1. ffmpeg's stderr was previously discarded silently — when video thumbnail generation failed, the resulting `ValueError` carried no diagnostic info.

  • Module-level logger (`athena_file.media.thumbnails`)
  • Non-zero return code raises `ValueError` with rc + stderr in the message AND emits an ERROR-level log line
  • DEBUG-level: stderr is also logged on success (gated by `logger.isEnabledFor` to avoid the decode cost when debug is off)
  • Inner `except ValueError: raise` lets our explicit failure pass through cleanly

Verification

  • `make test` → 247 passed
## Summary Replaces #16 — that PR's branch ran the old (broken) workflow; this one is fresh off the new main with the fixed CI pipeline (#21). Closes #1. ffmpeg's stderr was previously discarded silently — when video thumbnail generation failed, the resulting \`ValueError\` carried no diagnostic info. - Module-level logger (\`athena_file.media.thumbnails\`) - Non-zero return code raises \`ValueError\` with rc + stderr in the message AND emits an ERROR-level log line - DEBUG-level: stderr is also logged on success (gated by \`logger.isEnabledFor\` to avoid the decode cost when debug is off) - Inner \`except ValueError: raise\` lets our explicit failure pass through cleanly ## Verification - \`make test\` → 247 passed
feat(thumbnails): log ffmpeg output on failure (#1)
All checks were successful
Run pytest tests / test (pull_request) Successful in 19s
da349cd15c
Closes #1. ffmpeg's stderr was discarded silently. Now:

- module-level logger (athena_file.media.thumbnails)
- non-zero rc raises ValueError with rc + stderr in the message AND
  emits an ERROR-level log line so callers configured with logging
  see the cause
- DEBUG-level: stderr always logged on success too (gated by
  logger.isEnabledFor to avoid the decode cost when debug is off)
gravityfargo deleted branch feat/1-ffmpeg-logging-v2 2026-05-03 17:34:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ModernLeft/athena-file!22
No description provided.