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 2020/08/31 15:14:07 UTC

[GitHub] [airflow] jedcunningham commented on a change in pull request #10663: Optional import error tracebacks in web ui

jedcunningham commented on a change in pull request #10663:
URL: https://github.com/apache/airflow/pull/10663#discussion_r480197796



##########
File path: airflow/models/dagbag.py
##########
@@ -269,7 +270,12 @@ def _load_modules_from_file(self, filepath, safe_mode):
                 return [new_module]
             except Exception as e:  # pylint: disable=broad-except
                 self.log.exception("Failed to import: %s", filepath)
-                self.import_errors[filepath] = str(e)
+                if conf.getboolean('webserver', 'dagbag_import_error_tracebacks'):

Review comment:
       I put the config under webserver as I thought that made the most sense for the end user. Happy to move them elsewhere if needed.




----------------------------------------------------------------
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