浏览代码

HUE-8888 [connector] Avoid stack trace when Oozie is disabled

Romain 6 年之前
父节点
当前提交
bb7c8828c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/oozie_batch.py

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/oozie_batch.py

@@ -38,7 +38,7 @@ try:
   from oozie.views.dashboard import check_job_access_permission, check_job_edition_permission
   from oozie.views.dashboard import check_job_access_permission, check_job_edition_permission
   from oozie.views.editor2 import _submit_workflow
   from oozie.views.editor2 import _submit_workflow
 except Exception as e:
 except Exception as e:
-  LOG.exception('Oozie application is not enabled: %s' % e)
+  LOG.warn('Oozie application is not enabled: %s' % e)
 
 
 
 
 class OozieApi(Api):
 class OozieApi(Api):