You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by fo...@apache.org on 2018/01/15 20:07:16 UTC
incubator-airflow git commit: [AIRFLOW-2002] Do not swallow exception
on logging import
Repository: incubator-airflow
Updated Branches:
refs/heads/master 7cf7cd7ca -> a34a4865b
[AIRFLOW-2002] Do not swallow exception on logging import
Closes #2945 from bolkedebruin/AIRFLOW-2002
Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a34a4865
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a34a4865
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a34a4865
Branch: refs/heads/master
Commit: a34a4865b118ffa8f5389ecb58ea3e0ee6970b04
Parents: 7cf7cd7
Author: Bolke de Bruin <bo...@xs4all.nl>
Authored: Mon Jan 15 21:06:59 2018 +0100
Committer: Fokko Driesprong <fo...@godatadriven.com>
Committed: Mon Jan 15 21:06:59 2018 +0100
----------------------------------------------------------------------
airflow/logging_config.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a34a4865/airflow/logging_config.py
----------------------------------------------------------------------
diff --git a/airflow/logging_config.py b/airflow/logging_config.py
index 0d3893a..ccf1890 100644
--- a/airflow/logging_config.py
+++ b/airflow/logging_config.py
@@ -54,10 +54,11 @@ def configure_logging():
'Successfully imported user-defined logging config from %s',
logging_class_path
)
- except Exception:
+ except Exception as err:
# Import default logging configurations.
raise ImportError(
- 'Unable to load custom logging from {}'.format(logging_class_path)
+ 'Unable to load custom logging from {} due to {}'
+ .format(logging_class_path, err)
)
else:
from airflow.config_templates.airflow_local_settings import (