azure-sdk-for-go
azure-sdk-for-go copied to clipboard
[azservicebus] Too many logs printed from azservicebus
Bug Report
pkg: github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus SDK version: v1.6.0 go version: go 1.19.1 x64
-
What happened?
In our setup, there is a component written in golang which connects to azure-service-bus, and receives messages. There we use the client SDK (sdk/messaging/azservicebus) to handle event receiving. Recently, we witnessed some failures related to event receiving and hence we upgraded the version from v1.1.4 to v1.6.0 which is the latest. The event receiving works as expected now, but there has been a massive number of logs printed from the azservicebus client library. Some of those logs being printed as an error log too but functionality works without any issues. Therefore it creates a large noise.
-
What did you expect or want to happen?
We need not to enable detailed logs bydefault. But having a few logs printed would be okay as it helps to identify if something unexpected happens and we need to track down the root cause. It creates so much noise as well as it increases the cost in our infrastructure as well. So We would prefer not to print so many logs by default, rather print detailed logs only when a certain argument or an environment variable is set.
-
How can we reproduce it?
Write a simple ASB client, where it subscribes to a topic and receive messages.
-
Anything we should know about your environment. This is not environment specific.