Skip to content

Commit 3143392

Browse files
committed
Review comments
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent d079b8d commit 3143392

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

codersdk/deployment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,6 @@ Write out the current server config as YAML to stdout.`,
30383038
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
30393039
Hidden: true, // Hidden because most operators should not need to modify this.
30403040
},
3041-
// Push notifications.
30423041

30433042
// Workspace Prebuilds Options
30443043
{

enterprise/coderd/coderd.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,13 @@ func (api *API) Authorize(r *http.Request, action policy.Action, object rbac.Obj
11521152
func (api *API) setupPrebuilds(featureEnabled bool) (agplprebuilds.ReconciliationOrchestrator, agplprebuilds.Claimer) {
11531153
experimentEnabled := api.AGPL.Experiments.Enabled(codersdk.ExperimentWorkspacePrebuilds)
11541154
if !experimentEnabled || !featureEnabled {
1155-
api.Logger.Debug(context.Background(), "prebuilds not enabled",
1155+
levelFn := api.Logger.Debug
1156+
// If the experiment is enabled but the license does not entitle the feature, operators should be warned.
1157+
if !featureEnabled {
1158+
levelFn = api.Logger.Warn
1159+
}
1160+
1161+
levelFn(context.Background(), "prebuilds not enabled",
11561162
slog.F("experiment_enabled", experimentEnabled), slog.F("feature_enabled", featureEnabled))
11571163

11581164
return agplprebuilds.DefaultReconciler, agplprebuilds.DefaultClaimer

0 commit comments

Comments
 (0)