Skip to content

Commit

Permalink
Include original error when metricbeat fails to connect with Kafka (#…
Browse files Browse the repository at this point in the history
…21484) (#21508)

(cherry picked from commit 3d8e7dd)
  • Loading branch information
jsoriano authored Oct 5, 2020
1 parent c570e44 commit 5d60433
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 5d60433

Please sign in to comment.