-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log only what we need in INFO (too much logging by default) #20836
Comments
|
Request from customer as well to reduce our logging in INFO level - #20527 |
Still occurring in latest SDK, our logs are flooded with hundreds of thousands of messages like this [boundedElastic-9] INFO com.azure.messaging.servicebus.implementation.ServiceBusReceiveLinkProcessor - prefetch: '8', requested: '1', linkCredits: '3', expectedTotalCredit: '8', queuedMessages:'5', creditsToAdd: '0', messageQueue.size(): '5'
[boundedElastic-9] INFO com.azure.messaging.servicebus.implementation.ServiceBusReceiveLinkProcessor - prefetch: '8', requested: '1', linkCredits: '3', expectedTotalCredit: '8', queuedMessages:'4', creditsToAdd: '1', messageQueue.size(): '4'
[boundedElastic-7] INFO com.azure.messaging.servicebus.implementation.ServiceBusReceiveLinkProcessor - prefetch: '8', requested: '1', linkCredits: '4', expectedTotalCredit: '8', queuedMessages:'4', creditsToAdd: '0', messageQueue.size(): '4' ServiceBusReceiveLinkProcesor is definitely the culprit, changing the single line in there that logs this from INFO to DEBUG would be a godsend. |
Yes, as part of the logging cleanup; our logging of errors and exception messages should have embedded aka.ms links which point to anchors in a TROUBLESHOOTING.md. See how azure-identity has done this already (/cc @g2vinay) as a template. |
We also have a request from customer to reduce the logging in INFO level, or at least provide a mechanism to specifically ignore the INFO logs from Service Bus |
I just tried upgrading to latest SDK and I think the logging has gotten worse! See samples...ever operation logged as INFO. Please FIX THIS! 49268376727","linkName":"cbs","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.handler.ReceiveLinkHandler - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs","linkName":"cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Channel is closed. Requesting upstream.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Connection not requested, yet. Requesting one.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.ReactorConnection - {"az.sdk.message":"Emitting new response channel.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs","linkName":"cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Setting next AMQP channel.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Next AMQP channel received, updating 0 current subscribers","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.handler.SendLinkHandler - {"az.sdk.message":"Sender link was never active. Closing endpoint states.","connectionId":"MF_0a5ddb_1649268376727","linkName":"cbs","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.handler.ReceiveLinkHandler - {"az.sdk.message":"Receiver link was never active. Closing endpoint states","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs","linkName":"cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Channel is closed. Requesting upstream.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Connection not requested, yet. Requesting one.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.ReactorConnection - {"az.sdk.message":"Emitting new response channel.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs","linkName":"cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Setting next AMQP channel.","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"}
[reactor-executor-1] INFO com.azure.core.amqp.implementation.AmqpChannelProcessor - {"az.sdk.message":"Next AMQP channel received, updating 0 current subscribers","connectionId":"MF_0a5ddb_1649268376727","entityPath":"$cbs"} |
Request to include additional logs indicating processor restart - #28859 |
The current INFO logs from Service Bus SDK are too verbose, here’s an example on what we see at the logging: 2022-04-06 13:40:00.371 INFO 16140 --- [ctor-executor-3] c.a.c.a.i.handler.ConnectionHandler : onConnectionRemoteClose connectionId[MF_f36194_1649270398347] hostname[SERVICE_BUS_URL] errorCondition[null] errorDescription[null] This log was generated for: Expected Behavior: It also could be provided option to enable/disable. |
Any update on this case ? I mean in INFO, we don't have to have these kind of logs. |
@anuchandy Is there any update here? |
@conniey Is the excess logging going to be addressed in future releases? |
Could you also hide onErrorDropped from logs? This happens when the connection is idle for a long time, but it does not seem like an error actually. Example stack trace:
|
any update on this? |
Create new issue if we have concrete areas to reduce logging. |
ie. If there are timeout exceptions that we recover from, can we just suppress them.
The text was updated successfully, but these errors were encountered: