This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi 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 d8af20f064 DagBag: Use dag.fileloc instead of dag.full_filepath in
exception message (#30610)
d8af20f064 is described below
commit d8af20f064b8d8abc9da1f560b2d7e1ac7dd1cc1
Author: dstaple <[email protected]>
AuthorDate: Thu Apr 13 03:28:12 2023 -0300
DagBag: Use dag.fileloc instead of dag.full_filepath in exception message
(#30610)
Co-authored-by: Douglas Staple <[email protected]>
---
airflow/models/dagbag.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/models/dagbag.py b/airflow/models/dagbag.py
index 8d0f22851c..f9d54cfb84 100644
--- a/airflow/models/dagbag.py
+++ b/airflow/models/dagbag.py
@@ -640,7 +640,7 @@ class DagBag(LoggingMixin):
except OperationalError:
raise
except Exception:
- log.exception("Failed to write serialized DAG: %s",
dag.full_filepath)
+ log.exception("Failed to write serialized DAG: %s",
dag.fileloc)
dagbag_import_error_traceback_depth = conf.getint(
"core", "dagbag_import_error_traceback_depth"
)