parameters: (self)
docstring: Stops RPC Logging.
docstring_summary: Stops RPC Logging.
docstring_tokens: Stops RPC Logging .
function: def StopLoggingRpc(self):
      """Stops RPC Logging."""
      _LOGGER.info('Stopping RPC logging.')
  
      # Use the call-trace service's command line to stop the singleton
      # call-trace service instance. We can't just terminate the process
      # because we need it to shutdown cleanly and sending it a control
      # message (Ctrl-C, Ctrl-Break) to request a shutdown isn't reliable
      # from Python. So, we use it's exposed RPC interface to request a
      # shutdown.
      exe_file = _GetExePath('call_trace_service.exe')
      exe_dir = os.path.dirname(exe_file)
      command = [exe_file, 'stop', '--verbose']
      status = subprocess.call(command, cwd=exe_dir)
      if status != 0:
        raise RunnerError('Failed to stop call-trace service')
  
      # Wait for the process to close (and remember its shutdown status),
      # then dump its error logs to our log stream.
      status = self._call_trace_service.wait()
      self._DumpCallTraceLog(_LOGGER.info)
      self._call_trace_service = None
      if status != 0:
        raise RunnerError('RPC logging returned an error (%s).' % status)
function_tokens: def StopLoggingRpc ( self ) : _LOGGER . info ( 'Stopping RPC logging.' ) # Use the call-trace service's command line to stop the singleton # call-trace service instance. We can't just terminate the process # because we need it to shutdown cleanly and sending it a control # message (Ctrl-C, Ctrl-Break) to request a shutdown isn't reliable # from Python. So, we use it's exposed RPC interface to request a # shutdown. exe_file = _GetExePath ( 'call_trace_service.exe' ) exe_dir = os . path . dirname ( exe_file ) command = [ exe_file , 'stop' , '--verbose' ] status = subprocess . call ( command , cwd = exe_dir ) if status != 0 : raise RunnerError ( 'Failed to stop call-trace service' ) # Wait for the process to close (and remember its shutdown status), # then dump its error logs to our log stream. status = self . _call_trace_service . wait ( ) self . _DumpCallTraceLog ( _LOGGER . info ) self . _call_trace_service = None if status != 0 : raise RunnerError ( 'RPC logging returned an error (%s).' % status )