Skip to content

apollo_mempool: reduce error logs to debug#13299

Merged
Itay-Tsabary-Starkware merged 1 commit intomain-v0.14.1-committerfrom
03-17-apollo_mempool_reduce_error_logs_to_debug
Mar 18, 2026
Merged

apollo_mempool: reduce error logs to debug#13299
Itay-Tsabary-Starkware merged 1 commit intomain-v0.14.1-committerfrom
03-17-apollo_mempool_reduce_error_logs_to_debug

Conversation

@Itay-Tsabary-Starkware
Copy link
Copy Markdown
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware commented Mar 17, 2026

Note

Low Risk
Logging-only change that downgrades tracing::instrument error events from error to debug for key mempool APIs; no transaction handling logic is modified.

Overview
Reduces log severity noise in apollo_mempool by changing tracing::instrument annotations on get_txs, validate_tx, and add_tx so that returned errors are emitted at debug level instead of the default error level.

Written by Cursor Bugbot for commit 592fed7. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

@TzahiTaub reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Itay-Tsabary-Starkware).


crates/apollo_mempool/src/mempool.rs line 281 at r1 (raw file):

    /// created.
    // TODO(AlonH): Consider renaming to `pop_txs` to be more consistent with the standard library.
    #[instrument(skip(self), err(level = "debug"))]

This should be reverted IMO. The only way to get an error here is if there is a nonce overflow, this shouldn't happen of course, and suggests a possible bug. The other two are fine as they do validations and a failure is expected.

Code quote:

 #[instrument(skip(self), err(level = "debug"))]

Copy link
Copy Markdown
Collaborator Author

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

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

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on TzahiTaub).


crates/apollo_mempool/src/mempool.rs line 281 at r1 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

This should be reverted IMO. The only way to get an error here is if there is a nonce overflow, this shouldn't happen of course, and suggests a possible bug. The other two are fine as they do validations and a failure is expected.

If there's a bug/error there should be an explicit error message in the code itself.

Copy link
Copy Markdown
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

@TzahiTaub resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Itay-Tsabary-Starkware).

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main-v0.14.1-committer with commit 01e688d Mar 18, 2026
15 of 27 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants