fix(inputs.amqp_consumer): Print error on connection failure (#13777)
This commit is contained in:
parent
cc612ca35a
commit
6f5e5be7b2
|
|
@ -226,7 +226,7 @@ func (a *AMQPConsumer) connect(amqpConf *amqp.Config) (<-chan amqp.Delivery, err
|
|||
a.Log.Debugf("Connected to %q", broker)
|
||||
break
|
||||
}
|
||||
a.Log.Debugf("Error connecting to %q", broker)
|
||||
a.Log.Errorf("Error connecting to %q: %s", broker, err)
|
||||
}
|
||||
|
||||
if a.conn == nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue