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/10/02 11:58:04 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #11195: 2.0 UI Overhaul/Refresh

kaxil commented on a change in pull request #11195:
URL: https://github.com/apache/airflow/pull/11195#discussion_r498776772



##########
File path: airflow/www/extensions/init_jinja_globals.py
##########
@@ -42,6 +45,14 @@ def init_jinja_globals(app):
     expose_hostname = conf.getboolean('webserver', 'EXPOSE_HOSTNAME', fallback=True)
     hosstname = socket.getfqdn() if expose_hostname else 'redact'
 
+    try:
+        airflow_version = airflow.__version__
+    except Exception as e:  # pylint: disable=broad-except
+        airflow_version = None
+        logging.error(e)
+
+    git_version = get_airflow_git_version()

Review comment:
       Yeah or just change it to log.debug to be honest.




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