Closed cwjohnston closed 7 years ago
@cwjohnston I've found this issue annoying in the past as well. I've created PR #34 to address this.
At a minimum, we should be logging any issues/errors in regards to AMQP connectivity, specially while periodically attempting to reconnect.
I merged https://github.com/sensu/sensu-transport/pull/33
We need to update Sensu Core 0.27 to use these changes.
We can ship a sensu-transport release with the changes in https://github.com/sensu/sensu-transport/pull/33 and the changes to enable AMQP reconnecting logging.
@portertech PR #34 is also related iirc, but the build is failing. It seem @logger is not defined somehow? it's been a while since I made the changes but they were working for sure. I wonder if I missed introducing the @logger in that scope somehow or if this is a test environment problem.
Closed by #34.
Now that we can expect errors with more context via ruby-amqp (see https://github.com/sensu/sensu/issues/842 and #29), it seems like we should probably surface those errors to the log. For example, I installed Sensu 0.24 on a client, validated configuration, then changed the RabbitMQ password and restarted sensu-client. Even with debug logging, there's no indication that the connection is being retried or that there was an error during connection attempts:
To some extent this might apply only to RabbitMQ, I haven't tested other transports for same behavior.
Relates to https://github.com/sensu/sensu/issues/1058, https://github.com/sensu/sensu/issues/842