Skip to content

Remove warning log on dropped message#898

Merged
mtmk merged 1 commit into
nats-io:mainfrom
desmondgc:patch-1
Jul 15, 2025
Merged

Remove warning log on dropped message#898
mtmk merged 1 commit into
nats-io:mainfrom
desmondgc:patch-1

Conversation

@desmondgc

Copy link
Copy Markdown
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).

@mtmk mtmk 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 @desmondgc

@mtmk

mtmk commented Jul 15, 2025

Copy link
Copy Markdown
Member

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)
@mtmk mtmk mentioned this pull request Sep 22, 2025
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