-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
EH receiver warnings #15077
Comments
I am just curious whether we can't use a proper logger in the SDK with proper log levels. Then we can easily turn certain logs on and off. Also as mentioned since these are not actual errors (the SDK can recover from them), they should be either warning or debug logs I think. |
Hey folks; (If anyone is curious, the context is roughly "according to AMQP spec, these sort of failures are not normal and were above their threshold for "be noisy about it regardless", but in a servicebus/eventhub context they explicitly have a meaning and should be controlled ideally as you describe.) To the point, your code is potentially not doing anything wrong if you're able to send and receive and continue to consume from partitions. However, I do want to quickly eyeball the ConnectionClose though, if you have a stacktrace for that it might help facilitate, since that doesn't ring a bell like LinkDetach did for me. (and I'd want to make sure it comes from a similar root) Thanks as always for reaching out, don't hesitate to ask for clarity if any of this ramble was unclear. |
Hi @KieranBrantnerMagee,
Pls let me know if any more details are needed. |
Also getting the error: LinkDetach('ErrorCodes.UnknownError') after initializing the client. |
hey @DuneeshaFernando, @realadeel sorry about missing the thread here. I could provide more context:
Those loggings are helpful for debugging, however, we're aware that it's kinda verbose nowadays. We'll look into this when we have free cycles. I would recommend you to ignore those verbose loggings first. |
Hey @DuneeshaFernando @realadeel - Here is a temporary solution in the meantime to filter out the uAMQP logs that you are encountering. Add the following to the top of your code: import logging
logging.basicConfig(level=logging.WARNING)
uamqp_logger = logging.getLogger('uamqp')
uamqp_logger.setLevel(logging.ERROR) |
hey folks, apologize for not getting back to you sooner. We had an internal discussion on the uamqp logging strategy and we're sorry to inform you that we decide not to change the logging level of those uamqp errors. -- It is recommended to use the built-in python logging module to suppress uamqp log warnings if needed as described by @swathipil.
Here's the reasoning:
To conclude with, based on the aforementioned factors, we think it's better to give the logging control to users. But we would also like to provide instructions in readme.md on how to configure uamqp logging with the built-in python logging module. I have created a separate issue for it: #19170. Please let me know if you have any thoughts. We value your feedbacks and are completely open for discussion. |
T2 vmware (Azure#15077) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * readme t2 config Co-authored-by: msyyc <[email protected]>
T2 vmware (Azure#15077) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * readme t2 config Co-authored-by: msyyc <[email protected]>
Is your feature request related to a problem? Please describe.
I'm using azure-sdk-for-python to receive events from EventHub. However, sometimes I notice that multiple warnings are being printed as logs continuously. Following are some of the types of logs being printed.
Since, they do not seem to actually interrupt my applications, could you tell me how to get rid of those or if there is any mistake in my code, could I know how to correct it?
Describe the solution you'd like
If it could be confirmed that there is no problem in receiving events from EH, I suggest preventing printing those logs. The main reason for my suggestion is because sometimes it is difficult to track actual logs from my application due to the high frequency of the EH receiver warnings being printed.
Describe alternatives you've considered
N/A
Additional context
Please request for any details required.
The text was updated successfully, but these errors were encountered: