You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/eventhub/azure-eventhub/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,6 +407,18 @@ The Event Hubs APIs generate the following exceptions in azure.eventhub.exceptio
407
407
- Enable `azure.eventhub` logger to collect traces from the library.
408
408
- Enable `uamqp` logger to collect traces from the underlying uAMQP library.
409
409
- Enable AMQP frame level trace by setting `logging_enable=True` when creating the client.
410
+
- There may be cases where you consider the `uamqp` logging to be too verbose. To suppress unnecessary logging, add the following snippet to the top of your code:
411
+
```python
412
+
import logging
413
+
414
+
# The logging levels below may need to be adjusted based on the logging that you want to suppress.
415
+
uamqp_logger = logging.getLogger('uamqp')
416
+
uamqp_logger.setLevel(logging.ERROR)
417
+
418
+
# or even further fine-grained control, suppressing the warnings in uamqp.connection module
Copy file name to clipboardExpand all lines: sdk/servicebus/azure-servicebus/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,18 @@ It would also manifest when trying to take action (such as completing a message)
380
380
- Enable `azure.servicebus` logger to collect traces from the library.
381
381
- Enable `uamqp` logger to collect traces from the underlying uAMQP library.
382
382
- Enable AMQP frame level trace by setting `logging_enable=True` when creating the client.
383
+
- There may be cases where you consider the `uamqp` logging to be too verbose. To suppress unnecessary logging, add the following snippet to the top of your code:
384
+
```python
385
+
import logging
386
+
387
+
# The logging levels below may need to be changed based on the logging that you want to suppress.
388
+
uamqp_logger = logging.getLogger('uamqp')
389
+
uamqp_logger.setLevel(logging.ERROR)
390
+
391
+
# or even further fine-grained control, suppressing the warnings in uamqp.connection module
0 commit comments