fix(inputs.amqp_consumer): Print error on connection failure (#13777)

This commit is contained in:
Joshua Powers 2023-08-28 02:25:32 -06:00 committed by GitHub
parent cc612ca35a
commit 6f5e5be7b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {