Skip to content

Conversation

@mkysel
Copy link
Collaborator

@mkysel mkysel commented Jun 25, 2025

Silence error logging during shutdown in syncWorker.subscribeToNodeRegistration method to prevent unnecessary error logs when context is canceled

Modifies the error logging condition in the subscribeToNodeRegistration function within pkg/sync/syncWorker.go to add a context cancellation check. The function now only logs connection errors when s.ctx.Err() == nil, preventing error messages from being logged when connections are terminated due to normal context cancellation during shutdown.

📍Where to Start

Start with the subscribeToNodeRegistration function in pkg/sync/syncWorker.go.


Macroscope summarized ae656f5.

@mkysel mkysel requested a review from a team as a code owner June 25, 2025 04:43
@graphite-app
Copy link

graphite-app bot commented Jun 25, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@mkysel mkysel force-pushed the mkysel/silence-error branch from ab57988 to ae656f5 Compare June 25, 2025 15:09
@mkysel mkysel enabled auto-merge (squash) June 25, 2025 15:09
@mkysel mkysel merged commit 7a1e68f into main Jun 25, 2025
9 checks passed
@mkysel mkysel deleted the mkysel/silence-error branch June 25, 2025 15:13
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.

3 participants