Skip to content

Name the broker only when it can't be reached - #119

Merged
alefcastelo merged 2 commits into
mainfrom
quiet-broker-line
Dec 1, 2026
Merged

alefcastelo merged 2 commits into
mainfrom
quiet-broker-line

Conversation

@alefcastelo

Copy link
Copy Markdown
Member

Every command printed Broker: <url> (<origin>) on stderr before its result — noise on every run.

Now normal runs print nothing extra. When the broker can't be reached (connection refused, DNS, timeout), the error names the URL and where it came from, so a wrong URL is easy to spot:

before
Broker: http://localhost:9 (from BIDIREKT_BROKER_URL)
cannot list participants from broker: Get "http://localhost:9/api/participants": dial tcp [::1]:9: connect: connection refused

after
cannot reach the broker at http://localhost:9 (from BIDIREKT_BROKER_URL): dial tcp [::1]:9: connect: connection refused

🤖 Generated with Claude Code

Drop the "Broker: <url> (<origin>)" line every command printed on
stderr. When the broker can't be reached, the error now names its URL
and where it came from instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e733544 and 5355071.

Files selected for processing: 5

  • internal/bootstrap.go
  • internal/bootstrap_test.go
  • internal/components/broker_unreachable_error.go
  • internal/components/http_client.go
  • tests/e2e/commands.bats
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@alefcastelo
alefcastelo merged commit a8ff1f0 into main Dec 1, 2026
14 checks passed
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.

1 participant