Example #1
0
 def __init__(self):
     self._log = LOGGER_FACTORY.get_logger('ipa.main')
     self._log.info(K.CLIENT_GREETING)
     auth_info = ((' (authenticated as user "%s")' % ARGS.server_username())
                  if ARGS.server_username() else '')
     self._log.info('URL: %s%s' % (ARGS.server_url(), auth_info))
     self._log.info('client version: %s' % C.CLIENT_VERSION())
     if C.DEMO_MODE_ENABLED():
         self._log.warn('DEMO MODE ENABLED')
     # Create main command queue.
     self._main_cq = Queue.Queue()
     # Create thread termination Event for Uploader.
     self._uploader_termination_event = threading.Event()
Example #2
0
 def get_sample(self):
   return 'meta', {'stratum': raspisys.get_stratum(),  # TODO: Avoid subprocess?
                   'client_version': C.CLIENT_VERSION(),
                   'cts': common.timestamp()}