From 3545d0fbf3765ac0dbd991e0c44cb194e0f1d293 Mon Sep 17 00:00:00 2001 From: AYM1607 Date: Tue, 5 Nov 2024 22:02:16 +0000 Subject: [PATCH] Update logging wording. Signed-off-by: AYM1607 --- internal/initwd/module_install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/initwd/module_install.go b/internal/initwd/module_install.go index 937ec41a3b..b9549798d0 100644 --- a/internal/initwd/module_install.go +++ b/internal/initwd/module_install.go @@ -526,7 +526,7 @@ func (i *ModuleInstaller) installRegistryModule(ctx context.Context, req *config constraint := req.VersionConstraint.Required.String() acceptableVersions, err := versions.MeetingConstraintsString(constraint) if err != nil { - log.Printf("[WARN] ModuleInstaller: Attempting to strip \"v\" prefixes, because version constraints %q was unable to be parsed: %s", constraint, err.Error()) + log.Printf("[WARN] ModuleInstaller: %s (while evaluating %s) attempting to strip \"v\" prefixes from constraint (%s) because it was unable to be parsed: %s", key, v, constraint, err.Error()) // apparentlymart/go-versions purposely doesn't accept "v" prefixes. // However, hashicorp/go-version does, which leads to inconsistent // errors when specifying constraints that contain prerelease @@ -543,7 +543,7 @@ func (i *ModuleInstaller) installRegistryModule(ctx context.Context, req *config })) acceptableVersions, err = versions.MeetingConstraintsString(strippedConstraint) if err != nil { - log.Printf("[WARN] ModuleInstaller: %s ignoring %s because the version constraints (%s) could not be parsed: %s", key, v, req.VersionConstraint.Required.String(), err.Error()) + log.Printf("[WARN] ModuleInstaller: %s ignoring %s because the version constraints (%s) could not be parsed: %s", key, v, strippedConstraint, err.Error()) continue } }