This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 4460356c03 Set logging level to WARNING (#33314)
4460356c03 is described below

commit 4460356c03e5c1dedd72ce87a8ccfb9b19a33d76
Author: Arjun Anandkumar <[email protected]>
AuthorDate: Mon Aug 14 00:40:42 2023 +0200

    Set logging level to WARNING (#33314)
    
    * Set logging level to WARNING
    
    * re-order imports
    
    * Format
---
 airflow/providers/microsoft/azure/secrets/key_vault.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/airflow/providers/microsoft/azure/secrets/key_vault.py 
b/airflow/providers/microsoft/azure/secrets/key_vault.py
index 177da5d235..25ee2880ba 100644
--- a/airflow/providers/microsoft/azure/secrets/key_vault.py
+++ b/airflow/providers/microsoft/azure/secrets/key_vault.py
@@ -16,6 +16,8 @@
 # under the License.
 from __future__ import annotations
 
+import logging
+import os
 import re
 import warnings
 from functools import cached_property
@@ -95,6 +97,13 @@ class AzureKeyVaultBackend(BaseSecretsBackend, LoggingMixin):
             self.config_prefix = config_prefix.rstrip(sep)
         else:
             self.config_prefix = config_prefix
+
+        logger = 
logging.getLogger("azure.core.pipeline.policies.http_logging_policy")
+        try:
+            logger.setLevel(os.environ.get("AZURE_HTTP_LOGGING_LEVEL", 
logging.WARNING))
+        except ValueError:
+            logger.setLevel(logging.WARNING)
+
         self.sep = sep
         self.kwargs = kwargs
 

Reply via email to