Skip to content

[#463] Log handler registration count once - #510

Merged
smcvb merged 3 commits into
mainfrom
bug/463
Aug 24, 2026
Merged

smcvb merged 3 commits into
mainfrom
bug/463

Conversation

@smcvb

@smcvb smcvb commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This PR adjusts the logging behavior of the CommandChannelImpl and QueryChannelImpl to ensure we only log successfully if handlers are actually registered.
This is done by checking if we're registering handlers for the first time or registering as part of a reconnect.
By doing the above, this PR resolve #463.

smcvb added 2 commits August 24, 2026 10:24
Ensure CommandChannelImpl registered handler count logs only once. Do so
 by validating on the existing log line if resubscribing is happening.
 Additionally, add another log block on registerCommandHandler when
 registering for the first time

#463
Ensure QueryChannelImpl registered handler count logs only once. Do so
 by validating on the existing log line if resubscribing is happening.
 Additionally, add another log block on registerQueryHandler when
 registering for the first time

#463

@m1l4n54v1c m1l4n54v1c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One small concern about double logigng.

Deduplicate specific handler registration duplication

#463
@sonarqubecloud

Copy link
Copy Markdown

@smcvb
smcvb merged commit 001563d into main Aug 24, 2026
5 checks passed
@smcvb
smcvb deleted the bug/463 branch August 24, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Command|Query]ChannelImpl loops over empty map during doCreate...Stream and logs success - although no handlers are present

2 participants