Wallet config debugging. More.
This commit is contained in:
parent
f5f247dcd8
commit
b109094683
|
@ -454,6 +454,8 @@ async def main(machine_specs):
|
|||
logger.info("Started onboarding")
|
||||
global next_retry_reached_server_limit
|
||||
last_used_config = None
|
||||
logger.info("logger.info(last_used_config) 1")
|
||||
logger.info(last_used_config)
|
||||
ever_pending_creation = False
|
||||
machine_id = get_machine_id()
|
||||
|
||||
|
@ -467,6 +469,9 @@ async def main(machine_specs):
|
|||
logger.error("Can't load default power limits of nVidia GPU(s)")
|
||||
sys.exit(1)
|
||||
|
||||
logger.info("logger.info(last_used_config) 2")
|
||||
logger.info(last_used_config)
|
||||
|
||||
oc_config = {}
|
||||
while True:
|
||||
try:
|
||||
|
@ -484,9 +489,6 @@ async def main(machine_specs):
|
|||
|
||||
config_validation = validate_clore_config(clore_config)
|
||||
|
||||
logger.info(config_validation)
|
||||
logger.info(clore_config)
|
||||
|
||||
if config_validation == "Validation successful":
|
||||
if "save_config" in clore_config and args.mode == "hive":
|
||||
verify_or_update_file(clore_conf_path, json.dumps(clore_config))
|
||||
|
@ -496,11 +498,11 @@ async def main(machine_specs):
|
|||
else:
|
||||
clore_config["stock_oc_override"] = oc_config
|
||||
|
||||
logger.info("Is config same")
|
||||
logger.info("Is config different")
|
||||
logger.info(clore_config != last_used_config)
|
||||
logger.info("Time")
|
||||
logger.info(time.time())
|
||||
logger.info(next_retry_reached_server_limit)
|
||||
logger.info(clore_config)
|
||||
logger.info(last_used_config)
|
||||
|
||||
if clore_config != last_used_config or (time.time() > next_retry_reached_server_limit and next_retry_reached_server_limit > 0):
|
||||
last_used_config = clore_config.copy()
|
||||
if type(clore_config) == dict and "hostname_override" in clore_config:
|
||||
|
@ -547,9 +549,12 @@ async def main(machine_specs):
|
|||
logger.error(f"Could not parse config - {' | '.join(config_validation)}")
|
||||
|
||||
except Exception as e:
|
||||
print(e)
|
||||
logger.error(e)
|
||||
await asyncio.sleep(5)
|
||||
|
||||
logger.info("logger.info(last_used_config) 3")
|
||||
logger.info(last_used_config)
|
||||
|
||||
if __name__ == "__main__":
|
||||
machine_specs = specs.get(benchmark_disk=True, mock=args.mock)
|
||||
asyncio.run(main(machine_specs))
|
Loading…
Reference in New Issue