Browse Source

[beeswax] Log exceptions

Erick Tryzelaar 10 years ago
parent
commit
85fe5a2

+ 2 - 0
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -723,6 +723,8 @@ class HiveServerClient:
       res = self.call(self._client.GetLog, req)
       res = self.call(self._client.GetLog, req)
       return res.log
       return res.log
     except:
     except:
+      LOG.exception('server does not support GetLog')
+
       return 'Server does not support GetLog()'
       return 'Server does not support GetLog()'
 
 
 
 

+ 2 - 0
apps/beeswax/src/beeswax/views.py

@@ -493,6 +493,8 @@ def view_results(request, id, first_row=0):
       columns = results.data_table.cols()
       columns = results.data_table.cols()
 
 
   except Exception, ex:
   except Exception, ex:
+    LOG.exception('error fetching results')
+
     fetch_error = True
     fetch_error = True
     error_message, log = expand_exception(ex, db, handle)
     error_message, log = expand_exception(ex, db, handle)