Skip to content

fix(utils/submit_api): improve resubmission logging and error messages#3348

Merged
mkoura merged 1 commit intomasterfrom
submit_api_attempts_log
Feb 23, 2026
Merged

fix(utils/submit_api): improve resubmission logging and error messages#3348
mkoura merged 1 commit intomasterfrom
submit_api_attempts_log

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Feb 23, 2026

  • Add attempt counters to resubmission log messages for better traceability.
  • Use named attempts variables instead of hardcoded values for clarity.
  • Update error messages to include the number of attempts made before failure.
  • Refactor loop indices for consistency and readability in post_cbor and submit_tx.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors submit_api retry loops to improve resubmission logging and make retry counts explicit, while also updating error messages to include attempt counts.

Changes:

  • Add attempt counters to resubmission warning logs in post_cbor and submit_tx.
  • Replace hardcoded retry limits with named attempts variables.
  • Update failure error messages to include the number of attempts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Add attempt counters to resubmission log messages for better traceability.
- Use named `attempts` variables instead of hardcoded values for clarity.
- Update error messages to include the number of attempts made before failure.
- Refactor loop indices for consistency and readability in `post_cbor` and `submit_tx`.
@mkoura mkoura force-pushed the submit_api_attempts_log branch from 31e1c3a to e512062 Compare February 23, 2026 14:38
@mkoura mkoura merged commit 05424de into master Feb 23, 2026
3 checks passed
@mkoura mkoura deleted the submit_api_attempts_log branch February 23, 2026 14:51
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