You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/09 01:52:47 UTC
[GitHub] [airflow] milton0825 commented on a change in pull request #5386:
AIRFLOW-4748 Print stacktrace for dagbag process exceptions
milton0825 commented on a change in pull request #5386: AIRFLOW-4748 Print stacktrace for dagbag process exceptions
URL: https://github.com/apache/airflow/pull/5386#discussion_r291824342
##########
File path: airflow/models/dagbag.py
##########
@@ -198,7 +199,8 @@ def process_file(self, filepath, only_if_updated=True, safe_mode=True):
mods.append(m)
except Exception as e:
self.log.exception("Failed to import: %s", filepath)
- self.import_errors[filepath] = str(e)
+ self.import_errors[filepath] = 'ERROR MESSAGE [' + str(e) + '] ' \
+ 'STACK TRACE [' + traceback.format_exc() + ']'
Review comment:
```suggestion
+ 'STACK TRACE [' + traceback.format_exc() + ']'
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services