Exemplo n.º 1
0
 def _fetch_logs_impl(self):
     request = message_pb2.FetchLogsRequest(session_id=self._session_id)
     responses = self._stub.FetchLogs(request)
     for resp in responses:
         resp = check_grpc_response(resp)
         message = resp.message.rstrip()
         if message:
             logger.info(message, extra={"simple": True})
Exemplo n.º 2
0
 def _fetch_logs_impl(self):
     request = message_pb2.FetchLogsRequest(session_id=self._session_id)
     responses = self._stub.FetchLogs(request)
     for resp in responses:
         resp = check_grpc_response(resp)
         message = resp.message.rstrip()
         if message:
             print(message, end="\n", file=sys.stdout, flush=True)
Exemplo n.º 3
0
 def _fetch_logs_impl(self):
     request = message_pb2.FetchLogsRequest(session_id=self._session_id)
     responses = self._stub.FetchLogs(request)
     for resp in responses:
         info = resp.info_message.rstrip()
         if info:
             logger.info(info, extra={"simple": True})
         error = resp.error_message.rstrip()
         if error:
             logger.error(error, extra={"simple": True})