Skip to content

Commit 747c8bb

Browse files
authored
refactor: include output directory path warn log (#519)
Updated the `log.Printf` call to print `dir.String() `alongside the error to make failures easier to investigate. This improves diagnostic logging when removing an output directory fails by including the directory path (quoted) in the warning message. Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
1 parent 4df323a commit 747c8bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/vmware/common/step_output_dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (s *StepOutputDir) Cleanup(state multistep.StateBag) {
108108
break
109109
}
110110

111-
log.Printf("[WARN] Failed to remove output dir: %s", err)
111+
log.Printf("[WARN] Failed to remove output dir %q: %s", dir.String(), err)
112112
time.Sleep(2 * time.Second)
113113
}
114114
}

0 commit comments

Comments
 (0)