You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2017/12/15 18:30:03 UTC

[jira] [Created] (AIRFLOW-1931) Importing airflow module shouldn't affect logging config

Ash Berlin-Taylor created AIRFLOW-1931:
------------------------------------------

             Summary: Importing airflow module shouldn't affect logging config
                 Key: AIRFLOW-1931
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1931
             Project: Apache Airflow
          Issue Type: Improvement
    Affects Versions: 1.9.0
            Reporter: Ash Berlin-Taylor
            Priority: Minor
             Fix For: 2.0.0


Right now simply importing the airflow main module will alter the logging config, which leads to some strange interactions with other python modules.

(One such example is sphinx autodoc where half the lines are in one logging format, and half are in airflow's style after it gets loaded by autodoc.)

It would be nice if we only used airflow's logging format from within airflow.bin.cli.

More generally this might also be achieved by doing less at the top level of modules (for instance importing airflow.configuration will end up creating dirs on the filesystem.)

None of this is a disaster or a bug, it's just a bit tiny bit annoying when you use airflow programatically



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)