Azure / Azure/azure-sdk-for-python

Set the logging level in azure/core/pipeline/policies/_universal.py to DEBUG

Aperta
#37,775 7 commenti 2 reazioni 4 assegnatari Rivendicata da @kashifkhan Vedi su GitHub
Azure.Core Client customer-reported feature-request needs-team-attention
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.