Просмотр исходного кода

HUE-8080 [jb] Log more information when a job has expired

Ying Chen 7 лет назад
Родитель
Сommit
35d45cd8cc

+ 1 - 0
apps/jobbrowser/src/jobbrowser/api.py

@@ -172,6 +172,7 @@ class YarnApi(JobBrowserApi):
       if e.code == 404:  # Job not found in RM so attempt to find job in JHS
         job = self._get_job_from_history_server(job_id)
       else:
+        LOG.error("Job %s has expired: %s" % (app_id, e))
         raise JobExpired(app_id)
     except PopupException, e:
       if 'NotFoundException' in e.message:

+ 1 - 1
desktop/core/src/desktop/lib/rest/http_client.py

@@ -67,7 +67,7 @@ class RestException(Exception):
     try:
       self._code = error.response.status_code
       self._headers = error.response.headers
-      self._message = self._error.response.text
+      self._message = self._message + '\n' + self._error.response.text
     except AttributeError:
       pass