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 0a9c3c007bf Suppress warnings when masking sensitive confs (#43335)
0a9c3c007bf is described below

commit 0a9c3c007bf1672398a63bb9c97b82ec48f60afc
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Oct 24 01:01:42 2024 +0100

    Suppress warnings when masking sensitive confs (#43335)
    
    This is to prevent issues such as 
https://github.com/apache/airflow/pull/43334
---
 airflow/configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/configuration.py b/airflow/configuration.py
index 461723f3749..9c15b5f7776 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -777,7 +777,7 @@ class AirflowConfigParser(ConfigParser):
 
         for section, key in self.sensitive_config_values:
             try:
-                value = self.get(section, key)
+                value = self.get(section, key, suppress_warnings=True)
             except AirflowConfigException:
                 log.debug(
                     "Could not retrieve value from section %s, for key %s. 
Skipping redaction of this conf.",

Reply via email to