Azure / Azure/azure-sdk-for-python
Set the logging level in azure/core/pipeline/policies/_universal.py to DEBUG
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 213
Descrizione
**Is your feature request related to a problem? Please describe.**
When I retrieve secrets from the keyvault I receive a very long list of GET requests, containing the request URL, the request method, its headers, etc.. Normally I do not need this information in my INFO log, because there is not much value in it. This also means that methods that use a lot of requests that require connections will also flood my logs with connection requests and responses.
**Describe the solution you'd like**
I would like to set the loglevel to DEBUG in policies/_universal.py. This means that the connection request will only be a one liner and still tell me about the success of the operation.
**Describe alternatives you've considered**
The current alternative is, that in each container created I run the command
`sed -i 's/logging.INFO/logging.DEBUG/g' /venv/lib/python3.11/site-packages/azure/core/pipeline/policies/_universal.py`
That replaces the INFO level in the code with DEBUG manually.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.