Skip to content

Remove warning log on dropped message #898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025
Merged

Conversation

desmondgc
Copy link
Contributor

Dropped messages can occur regularly. Depending on configuration / use case, this is even expected behavior. Logging a warning in the core NatsConnection potentially floods the logs with warnings and makes it difficult for clients to override. Logging on or otherwise handling dropped messages is better left for the user (i.e. by adding a custom MessageDropped event handler).

Dropped messages can occur regularly. Depending on configuration / use case, this is even expected behavior. Logging a warning in the core NatsConnection potentially floods the logs with warnings and makes it difficult for clients to override. Logging on or otherwise handling dropped messages is better left for the user (i.e. by adding a custom MessageDropped event handler).
Copy link
Member

@mtmk mtmk left a comment

Choose a reason for hiding this comment

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

LGTM thanks @desmondgc

@mtmk
Copy link
Member

mtmk commented Jul 15, 2025

note: test flapper is fixed in #900

@mtmk mtmk merged commit 7f7edd2 into nats-io:main Jul 15, 2025
19 of 26 checks passed
mtmk added a commit that referenced this pull request Jul 15, 2025
* Add telemetry extension for JetStream messages (#901)
* Fix `Storage` type in`AccountStats` model. (#890)
* Add NatsAuthOpts.Creds to enable providing credentials directly without file (#896)
* Remove warning log on dropped message (#898)
* Add JSON serialization with options (#902)
@mtmk mtmk mentioned this pull request Jul 15, 2025
mtmk added a commit that referenced this pull request Jul 16, 2025
* Add telemetry extension for JetStream messages (#901)
* Fix `Storage` type in`AccountStats` model. (#890)
* Add NatsAuthOpts.Creds to enable providing credentials directly without file (#896)
* Remove warning log on dropped message (#898)
* Add JSON serialization with options (#902)
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