diff --git a/shipyard_airflow/plugins/rest_api_plugin.py b/shipyard_airflow/plugins/rest_api_plugin.py index 9ac0879c..5b7ee851 100644 --- a/shipyard_airflow/plugins/rest_api_plugin.py +++ b/shipyard_airflow/plugins/rest_api_plugin.py @@ -33,6 +33,8 @@ airflow_version = airflow.__version__ airflow_webserver_base_url = configuration.get('webserver', 'BASE_URL') airflow_base_log_folder = configuration.get('core', 'BASE_LOG_FOLDER') airflow_dags_folder = configuration.get('core', 'DAGS_FOLDER') +log_loading = configuration.getboolean("rest_api_plugin", "LOG_LOADING") if configuration.has_option("rest_api_plugin", "LOG_LOADING") else False +filter_loading_messages_in_cli_response = configuration.getboolean("rest_api_plugin", "FILTER_LOADING_MESSAGES_IN_CLI_RESPONSE") if configuration.has_option("rest_api_plugin", "FILTER_LOADING_MESSAGES_IN_CLI_RESPONSE") else True # Using UTF-8 Encoding so that response messages don't have any characters in them that can't be handled os.environ['PYTHONIOENCODING'] = 'utf-8'