You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2023/08/04 16:44:57 UTC

[airflow] branch main updated: Correctly log when there are problems trying to chmod airflow.cfg (#33118)

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

ash 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 af08392005 Correctly log when there are problems trying to chmod airflow.cfg (#33118)
af08392005 is described below

commit af0839200565dd31787632119aec0b6a751b0ca8
Author: Ash Berlin-Taylor <as...@apache.org>
AuthorDate: Fri Aug 4 17:44:49 2023 +0100

    Correctly log when there are problems trying to chmod airflow.cfg (#33118)
    
    Without this change log gives us a big warning/stack trace about
    "TypeError: not all arguments converted during string formatting".
---
 airflow/configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/configuration.py b/airflow/configuration.py
index 948c68625e..a732f94f2d 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -2054,7 +2054,7 @@ def make_group_other_inaccessible(file_path: str):
     except Exception as e:
         log.warning(
             "Could not change permissions of config file to be group/other inaccessible. "
-            "Continuing with original permissions:",
+            "Continuing with original permissions: %s",
             e,
         )