Apache Airflow: Control over logging [Disable/Adjust logging level]

后端 未结 4 1130
青春惊慌失措
青春惊慌失措 2021-01-04 08:28

I am using Airflow 1.7.1.3 installed using pip

I would like to limit the logging to ERROR level for the workflow being executed by the scheduler. Could not find anyt

4条回答
  •  耶瑟儿~
    2021-01-04 08:53

    Only solution I am aware of is changing LOGGING_LEVEL in settings.py file. Default level is set to INFO.

    AIRFLOW_HOME = os.path.expanduser(conf.get('core', 'AIRFLOW_HOME'))
    SQL_ALCHEMY_CONN = conf.get('core', 'SQL_ALCHEMY_CONN') 
    LOGGING_LEVEL = logging.INFO
    DAGS_FOLDER = os.path.expanduser(conf.get('core', 'DAGS_FOLDER'))
    

提交回复
热议问题