Skip to content

Only log first stream connection#3872

Merged
moskyb merged 1 commit intomainfrom
dont-log-connection-established-constantly
Apr 30, 2026
Merged

Only log first stream connection#3872
moskyb merged 1 commit intomainfrom
dont-log-connection-established-constantly

Conversation

@moskyb
Copy link
Copy Markdown
Contributor

@moskyb moskyb commented Apr 30, 2026

Description

Currently, every time the ping stream is re-established (approximately once a minute), it logs a message Ping stream connection established. This gets kind of annoying at times.

This PR makes it so that the message is posted only if either:

  • It's the first stream connection ever
  • It's the first stream connection after switching modes

If it's a regular reconnection, then the message won't be logged.

Context

It was annoying me, in a dream

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

I did it, it's me.

@moskyb moskyb requested review from a team as code owners April 30, 2026 04:07
Copy link
Copy Markdown
Contributor

@DrJosh9000 DrJosh9000 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 👍

@moskyb moskyb merged commit 19a1461 into main Apr 30, 2026
3 checks passed
@moskyb moskyb deleted the dont-log-connection-established-constantly branch April 30, 2026 04:26
@buildkate buildkate mentioned this pull request May 4, 2026
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