Minor logging fixes

This commit is contained in:
AlexSSD7 2023-09-02 11:51:26 +01:00
commit f7ae303062
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ func (s *Storage) RunCLIImageBuild(showBuilderVMDisplay bool, overwrite bool) in
vmImagePath := s.GetVMImagePath()
removed, err := checkExistsOrRemove(vmImagePath, overwrite)
if err != nil {
slog.Error("Failed to check for (and remove) existing VM image", "error", err.Error())
slog.Error("Failed to check for (or remove if overwrite mode is on) existing VM image", "error", err.Error())
return 1
}

View file

@ -191,7 +191,7 @@ func configureVMCmdNetworking(logger *slog.Logger, cfg VMConfig, sshPort uint16)
ports = append(ports, cfg.ExtraPortForwardingRules...)
if cfg.UnrestrictedNetworking {
slog.Warn("Using unrestricted VM networking")
logger.Warn("Using unrestricted VM networking")
}
args, err := configureVMCmdUserNetwork(ports, cfg.UnrestrictedNetworking)