Skip to content

Commit df917d2

Browse files
committed
vz: use logrus.WithError(err)
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent db7387a commit df917d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/vz/vm_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ func linuxBootLoader(driver *driver.BaseDriver) (*vz.LinuxBootLoader, error) {
703703
if errors.Is(err, os.ErrNotExist) {
704704
logrus.Debugf("Kernel file %q not found", kernel)
705705
} else {
706-
logrus.Debugf("Error while checking kernel file %q: %v", kernel, err)
706+
logrus.WithError(err).Debugf("Error while checking kernel file %q", kernel)
707707
}
708708
return nil, err
709709
}

0 commit comments

Comments
 (0)