From f7ae3030626f08aaa80409ce1843d4463a600bf9 Mon Sep 17 00:00:00 2001 From: AlexSSD7 Date: Sat, 2 Sep 2023 11:51:26 +0100 Subject: [PATCH] Minor logging fixes --- storage/storage.go | 2 +- vm/cfg.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/storage.go b/storage/storage.go index d161fac..824a71f 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -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 } diff --git a/vm/cfg.go b/vm/cfg.go index 1692634..4d3ff3c 100644 --- a/vm/cfg.go +++ b/vm/cfg.go @@ -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)