def readyCheck(self, container, timeout):
    self.logger.debug('Checking if component %s is ready...', self.getName())
    checks = []
    for check in self.config.ready_checks:
      checks.append((check, buildHealthCheck(check)))

    start = time.time()
    while True:
      now = time.time()
      if now - start > timeout:
        # Timed out completely.
        self.logger.debug('Component %s ready checks have timed out')
        return False

      # Try each check. If any fail, we'll sleep and try again.
      check_failed = None
      for (config, check) in checks:
        report('Running health check: ' + config.getTitle(), component=self)
        result = check.run(container, report)
        if not result:
          report('Health check failed', component=self)
          check_failed = config
          break

      if check_failed:
        report('Sleeping ' + str(check_failed.timeout) + ' second(s)...', component=self)
        time.sleep(check_failed.timeout)
      else:
        break

    return True
Sets up the logging, which we can only do once per run.
dataset/ETHPy150Open DevTable/gantryd/runtime/component.py/Component.readyCheck--crossover with--dataset/ETHPy150Open crossbario/txaio/test/test_logging.py/log_started