Skip to content

Commit 113f345

Browse files
committed
change terraform download warning to debug log
1 parent 96eb1eb commit 113f345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provisioner/terraform/serve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func absoluteBinaryPath(ctx context.Context, logger slog.Logger) (string, error)
6363
return "", xerrors.Errorf("Terraform binary get version failed: %w", err)
6464
}
6565

66-
logger.Info(ctx, "detected terraform version",
66+
logger.Debug(ctx, "detected terraform version",
6767
slog.F("installed_version", installedVersion.String()),
6868
slog.F("min_version", minTerraformVersion.String()),
6969
slog.F("max_version", maxTerraformVersion.String()))
@@ -97,7 +97,7 @@ func Serve(ctx context.Context, options *ServeOptions) error {
9797
return xerrors.Errorf("absolute binary context canceled: %w", err)
9898
}
9999

100-
options.Logger.Warn(ctx, "no usable terraform binary found, downloading to cache dir",
100+
options.Logger.Debug(ctx, "no usable terraform binary found, downloading to cache dir",
101101
slog.F("terraform_version", TerraformVersion.String()),
102102
slog.F("cache_dir", options.CachePath))
103103
binPath, err := Install(ctx, options.Logger, options.CachePath, TerraformVersion)

0 commit comments

Comments
 (0)