Skip to content

Commit 112eaf8

Browse files
authored
fix: Add logging to Terraform install (#4191)
Fixes #4129.
1 parent 4054a9c commit 112eaf8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

enterprise/coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (api *API) runEntitlementsLoop(ctx context.Context) {
303303
api.Logger.Debug(ctx, "successfully subscribed to pubsub")
304304
}
305305

306-
api.Logger.Info(ctx, "syncing licensed entitlements")
306+
api.Logger.Debug(ctx, "syncing licensed entitlements")
307307
err := api.updateEntitlements(ctx)
308308
if err != nil {
309309
api.Logger.Warn(ctx, "failed to get feature entitlements", slog.Error(err))

provisioner/terraform/serve.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ func Serve(ctx context.Context, options *ServeOptions) error {
9898
Product: product.Terraform,
9999
Version: TerraformVersion,
100100
}
101-
101+
installer.SetLogger(slog.Stdlib(ctx, options.Logger, slog.LevelDebug))
102+
options.Logger.Info(ctx, "installing terraform", slog.F("dir", options.CachePath), slog.F("version", TerraformVersion))
102103
execPath, err := installer.Install(ctx)
103104
if err != nil {
104105
return xerrors.Errorf("install terraform: %w", err)

0 commit comments

Comments
 (0)