Преглед на файлове

HUE-5120 [core] Also log the potential detail of the PopUpException

Romain Rigaux преди 9 години
родител
ревизия
99a14be
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      desktop/core/src/desktop/lib/exceptions_renderable.py

+ 3 - 0
desktop/core/src/desktop/lib/exceptions_renderable.py

@@ -43,6 +43,9 @@ class PopupException(Exception):
     self.detail = detail
     self.error_code = error_code
 
+    if self.detail:
+      LOG.error('Potential detail: %s' % self.detail)
+
     # Traceback is only relevant if an exception was thrown, caught, and we reraise with this exception.
     (type, value, tb) = sys.exc_info()
     self.traceback = traceback.extract_tb(tb)