示例#1
0
 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()'
示例#2
0
  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
示例#3
0
    def get_log(self, operation_handle):
        req = TGetLogReq(operationHandle=operation_handle)
        res = self.call(self._client.GetLog, req)

        return res.log