From 1d260a29ba0ee9b179c48cdde92cb105031c5f69 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Thu, 24 Oct 2024 00:25:43 +0100 Subject: [PATCH] Suppress warnings when masking sensitive confs 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 461723f374994..9c15b5f7776f7 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -777,7 +777,7 @@ def mask_secrets(self): 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.",