rabbitmq / rabbitmq-stream-go-client

A client library for RabbitMQ streams
MIT License
170 stars 20 forks source link

Add logging unit tests to locator #236

Closed ablease closed 1 year ago

ablease commented 1 year ago

There is a new logging Context for the locator tests.

The Stream suite adds a custome handler to handle Debug level logs, and writes them to the GinkgoWriter.

In the locator tests, we Tee the logs into a seperate buffer, and make assertions on the structured logs in this buffer.