Skip to content

feat: log OpenDAL retries as a single line - #562

Merged
aawsome merged 2 commits into
rustic-rs:mainfrom
BradKollmyer:fix/opendal-retry-log-noise
Sep 4, 2026
Merged

feat: log OpenDAL retries as a single line#562
aawsome merged 2 commits into
rustic-rs:mainfrom
BradKollmyer:fix/opendal-retry-log-noise

Conversation

@BradKollmyer

Copy link
Copy Markdown
Contributor

Summary

  • replace OpenDAL's default retry interceptor with a compact one-line warning
  • keep the same information (error, delay, operation, attempt) without dumping the Debug context tree
  • match the REST backend style: Error {err} at {duration:?}, retrying ...

Why

Temporary backend errors such as B2 connection closed before message completed are already retried. The default interceptor formats the error with {:?}, which prints a multi-line Context/Source dump and overwrites progress output. OpenDAL's Display form is already a single line.

Validation

  • cargo test -p rustic_backend --lib opendal
  • cargo clippy -p rustic_backend --lib -- -D warnings

A companion rustic CLI PR captures console logs while the TUI owns the terminal so remaining log output cannot overwrite the progress popup.

Replace the default OpenDAL retry interceptor, which Debug-dumps the
full error context tree, with a one-line warning matching the REST backend.

@aawsome aawsome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @BradKollmyer ! Thanks for the PR! LGTM, but please remove the changelog edit - we document changes in the git history and the changelog gets generated.

Comment thread crates/backend/CHANGELOG.md Outdated
@aawsome aawsome changed the title fix: log OpenDAL retries as a single line feat: log OpenDAL retries as a single line Sep 4, 2026

@aawsome aawsome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks @BradKollmyer

@aawsome
aawsome enabled auto-merge September 4, 2026 18:43
@aawsome
aawsome added this pull request to the merge queue Sep 4, 2026
Merged via the queue into rustic-rs:main with commit e97a7dc Sep 4, 2026
21 of 22 checks passed
@rustic-release-plz rustic-release-plz Bot mentioned this pull request Aug 31, 2026
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.

2 participants