Skip to content

Commit

Permalink
fix(WVD): Move log with path before Device load
Browse files Browse the repository at this point in the history
This is so if the Device.load() call fails, we can know which file of the many files failed.
  • Loading branch information
rlaphoenix committed Apr 1, 2024
1 parent 9f4c458 commit f683be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/commands/wvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit f683be0

Please sign in to comment.