Skip to content

Comments

fix: remove unneeded tracing init in error case#675

Merged
mergify[bot] merged 1 commit intosigp:release-v1.0.0from
dknopik:fix-unneeded-tracing-init
Oct 9, 2025
Merged

fix: remove unneeded tracing init in error case#675
mergify[bot] merged 1 commit intosigp:release-v1.0.0from
dknopik:fix-unneeded-tracing-init

Conversation

@dknopik
Copy link
Member

@dknopik dknopik commented Oct 9, 2025

Issue Addressed

When this error occurs, the tracing is initialized ad-hoc so that the error can be logged. However, at this point, logging IS already initialized, causing a panic due to double initialization.

Proposed Changes

Remove the subscriber init.

Additional Info

I guess this stems from an earlier time when the order of operations was different.

@dknopik dknopik added ready-for-review This PR is ready to be reviewed v1.0.0 First Mainnet-release labels Oct 9, 2025
@dknopik dknopik requested a review from petarjuki7 October 9, 2025 09:42
@dknopik dknopik added ready-for-merge and removed ready-for-review This PR is ready to be reviewed labels Oct 9, 2025
@mergify mergify bot added the queued label Oct 9, 2025
mergify bot added a commit that referenced this pull request Oct 9, 2025
@mergify mergify bot merged commit f464406 into sigp:release-v1.0.0 Oct 9, 2025
17 checks passed
@mergify mergify bot removed the queued label Oct 9, 2025
petarjuki7 pushed a commit to petarjuki7/anchor that referenced this pull request Oct 16, 2025
When this error occurs, the tracing is initialized ad-hoc so that the error can be logged. However, at this point, logging IS already initialized, causing a panic due to double initialization.


  Remove the subscriber init.


Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge v1.0.0 First Mainnet-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants