From f683be01d40dec37a0d4fa6be742a22adfa3ede5 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 1 Apr 2024 18:35:00 +0100 Subject: [PATCH] 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. --- devine/commands/wvd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/commands/wvd.py b/devine/commands/wvd.py index 1f52ad9..2286b54 100644 --- a/devine/commands/wvd.py +++ b/devine/commands/wvd.py @@ -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}")