Skip to content

Commit 8b2bbac

Browse files
authored
fix links, titles. remove uamqp logging (Azure#29277)
1 parent a381892 commit 8b2bbac

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

sdk/eventhub/azure-eventhub/TROUBLESHOOTING.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ This troubleshooting guide covers failure investigation techniques, common error
1313
- [Connect using an IoT connection string](#connect-using-an-iot-connection-string)
1414
- [Cannot add components to the connection string](#cannot-add-components-to-the-connection-string)
1515
- [Enable and configure logging](#enable-and-configure-logging)
16-
- [Configuring Log4J 2](#configuring-log4j-2)
17-
- [Configuring logback](#configuring-logback)
1816
- [Enable AMQP transport logging](#enable-amqp-transport-logging)
19-
- [Reduce logging](#reduce-logging)
2017
- [Troubleshoot EventProducerAsyncClient/EventProducerClient issues](#troubleshoot-eventproducerasyncclienteventproducerclient-issues)
2118
- [Cannot set multiple partition keys for events in EventDataBatch](#cannot-set-multiple-partition-keys-for-events-in-eventdatabatch)
2219
- [Setting partition key on EventData is not set in Kafka consumer](#setting-partition-key-on-eventdata-is-not-set-in-kafka-consumer)
@@ -114,28 +111,11 @@ The Azure SDK for Python offers a consistent logging story to help troubleshoot
114111
This library uses the standard [Logging] library for logging
115112

116113
- Enable `azure.eventhub` logger to collect traces from the library.
117-
- Enable `uamqp` logger to collect traces from the underlying uAMQP library.
118114

119115
### Enable AMQP transport logging
120116

121117
If enabling client logging is not enough to diagnose your issues. You can enable AMQP frame level trace by setting `logging_enable=True` when creating the client.
122118

123-
### Reduce logging
124-
125-
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:
126-
127-
```python
128-
import logging
129-
130-
# The logging levels below may need to be adjusted based on the logging that you want to suppress.
131-
uamqp_logger = logging.getLogger('uamqp')
132-
uamqp_logger.setLevel(logging.ERROR)
133-
134-
# or even further fine-grained control, suppressing the warnings in uamqp.connection module
135-
uamqp_connection_logger = logging.getLogger('uamqp.connection')
136-
uamqp_connection_logger.setLevel(logging.ERROR)
137-
```
138-
139119
## Troubleshoot EventHubProducerClient (Sync/Async) issues
140120

141121
### Cannot set multiple partition keys for events in EventDataBatch
@@ -205,6 +185,7 @@ When filing GitHub issues, the following details are requested:
205185
<!-- repo links -->
206186
[IoTConnectionString]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py
207187
[MigrationGuide]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/migration_guide.md
188+
[SUPPORT]: https://github.com/Azure/azure-sdk-for-python/blob/main/SUPPORT.md
208189

209190
<!-- docs.microsoft.com links -->
210191
[ExceptionModule]: https://docs.microsoft.com/python/api/azure-eventhub/azure.eventhub.exceptions

0 commit comments

Comments
 (0)