From 5ae628afcb6759154a08accec8976ef8465c313d Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Thu, 24 Oct 2024 02:30:06 +0200 Subject: [PATCH] Suppress warnings when masking sensitive confs (#43335) (#43337) This is to prevent issues such as https://github.com/apache/airflow/pull/43334 (cherry picked from commit 0a9c3c007bf1672398a63bb9c97b82ec48f60afc) --------- Co-authored-by: Amogh Desai Co-authored-by: Kaxil Naik --- airflow/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/configuration.py b/airflow/configuration.py index 22e2c6abf702d..81eb0fc725344 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -856,7 +856,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.",