diff --git a/healthCheck.go b/healthCheck.go index 7259026..09d06cf 100644 --- a/healthCheck.go +++ b/healthCheck.go @@ -1,6 +1,9 @@ package rabbit -import amqp "github.com/rabbitmq/amqp091-go" +import ( + "fmt" + amqp "github.com/rabbitmq/amqp091-go" +) type healthCheck struct { server serverConfig @@ -12,5 +15,6 @@ func (c *healthCheck) Check() (string, error) { defer func(conn *amqp.Connection) { _ = conn.Close() }(manager.conn) - return "Rabbit." + c.server.Server, err + + return fmt.Sprintf("Rabbit.%s => Version %s", c.server.Server, manager.conn.Properties["version"]), err }