Skip to content

Commit

Permalink
Include original error when metricbeat fails to connect with Kafka (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Oct 5, 2020
1 parent b9569ff commit 3d8e7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/kafka/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (b *Broker) Connect() error {
c, err := getClusterWideClient(b.Addr(), b.cfg)
if err != nil {
closeBroker(b.broker)
return fmt.Errorf("Could not get cluster client for advertised broker with address %v", b.Addr())
return fmt.Errorf("getting cluster client for advertised broker with address %v: %w", b.Addr(), err)
}
b.client = c

Expand Down

0 comments on commit 3d8e7dd

Please sign in to comment.