fix(WVD): Move log with path before Device load

This is so if the Device.load() call fails, we can know which file of the many files failed.
This commit is contained in:
rlaphoenix 2024-04-01 18:35:00 +01:00
parent 9f4c4584da
commit f683be01d4
1 changed files with 1 additions and 1 deletions

View File

@ -133,9 +133,9 @@ def dump(wvd_paths: list[Path], out_dir: Path) -> None:
wvd_path = config.directories.wvds / f"{wvd_path.stem}.wvd"
out_path.mkdir(parents=True, exist_ok=True)
log.info(f"Dumping: {wvd_path}")
device = Device.load(wvd_path)
log.info(f"Dumping: {wvd_path}")
log.info(f"L{device.security_level} {device.system_id} {device.type.name}")
log.info(f"Saving to: {out_path}")