🐛 Bug Fix Release
This release fixes error logging to show the full error chain, completing the fix for Issue #1.
Fixed
Error Display in Logs
- Full error chains now visible - Error messages in logs now display complete FFmpeg stderr output
- Changed error formatting from Display (
{}) to Debug ({:?}) - Users now see:
"Track 0 encoding failed: FFmpeg conversion failed: [detailed FFmpeg stderr]" - Previously only showed:
"Track 0 encoding failed"without the underlying cause - Affects retry logs, batch processing logs, and metadata fetch logs
- Changed error formatting from Display (
Background
Version 2.5.1 fixed error preservation through async task boundaries, but errors were still only showing their outermost message in logs due to using Rust's Display trait. This release switches to the Debug trait which shows the full anyhow error chain, making complete FFmpeg stderr visible to users.
Technical Details
Files modified:
src/core/retry.rs- 3 error log statements (transient, permanent, exhausted retries)src/core/batch.rs- 2 error log statements (batch failures)src/cli/handlers.rs- 3 error log statements (metadata fetch failures)
Installation
cargo install audiobook-forge --forceFor Issue Reporters
@for-coursera - Please update to this version and try again. The logs should now show the actual FFmpeg error explaining why your MP3 files are failing to encode.
Full Changelog: https://github.com/juanra/audiobook-forge/blob/main/CHANGELOG.md