def get_log(self, operation_handle): try: req = TGetLogReq(operationHandle=operation_handle) res = self.call(self._client.GetLog, req) return res.log except: return 'Server does not support GetLog()'
def get_log(self, operation_handle): try: req = TGetLogReq(operationHandle=operation_handle) res = self.call(self._client.GetLog, req) return res.log except Exception, e: if 'Invalid query handle' in str(e): message = 'Invalid query handle' LOG.error('%s: %s' % (message, e)) else: message = 'Error when fetching the logs of the operation.' LOG.exception(message) return message
def get_log(self, operation_handle): req = TGetLogReq(operationHandle=operation_handle) res = self.call(self._client.GetLog, req) return res.log