mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
@ -303,7 +303,7 @@ func (api *API) runEntitlementsLoop(ctx context.Context) {
|
|||||||
api.Logger.Debug(ctx, "successfully subscribed to pubsub")
|
api.Logger.Debug(ctx, "successfully subscribed to pubsub")
|
||||||
}
|
}
|
||||||
|
|
||||||
api.Logger.Info(ctx, "syncing licensed entitlements")
|
api.Logger.Debug(ctx, "syncing licensed entitlements")
|
||||||
err := api.updateEntitlements(ctx)
|
err := api.updateEntitlements(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
api.Logger.Warn(ctx, "failed to get feature entitlements", slog.Error(err))
|
api.Logger.Warn(ctx, "failed to get feature entitlements", slog.Error(err))
|
||||||
|
@ -98,7 +98,8 @@ func Serve(ctx context.Context, options *ServeOptions) error {
|
|||||||
Product: product.Terraform,
|
Product: product.Terraform,
|
||||||
Version: TerraformVersion,
|
Version: TerraformVersion,
|
||||||
}
|
}
|
||||||
|
installer.SetLogger(slog.Stdlib(ctx, options.Logger, slog.LevelDebug))
|
||||||
|
options.Logger.Info(ctx, "installing terraform", slog.F("dir", options.CachePath), slog.F("version", TerraformVersion))
|
||||||
execPath, err := installer.Install(ctx)
|
execPath, err := installer.Install(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("install terraform: %w", err)
|
return xerrors.Errorf("install terraform: %w", err)
|
||||||
|
Reference in New Issue
Block a user