Skip to content

Commit 2f4d6c8

Browse files
benjaminjbcbandy
andauthored
Update cmd/postgres-operator/main.go
Co-authored-by: Chris Bandy <[email protected]>
1 parent 6287cbf commit 2f4d6c8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/postgres-operator/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ func main() {
136136
assertNoError(features.Set(os.Getenv("PGO_FEATURE_GATES")))
137137

138138
ctx = feature.NewContext(ctx, features)
139-
// This logs just the feature gates as set by the user
140-
log.Info("feature gates set during deployment", "PGO_FEATURE_GATES", feature.ShowAssigned(ctx))
141-
// This logs the feature gates that are enabled, including gates that are on by default
142-
log.Info(fmt.Sprintf("feature gates enabled: %s", feature.ShowEnabled(ctx)))
139+
log.Info("feature gates",
140+
// These are set by the user
141+
"PGO_FEATURE_GATES", feature.ShowAssigned(ctx),
142+
// These are enabled, including features that are on by default
143+
"enabled", feature.ShowEnabled(ctx))
143144

144145
cfg, err := runtime.GetConfig()
145146
assertNoError(err)

0 commit comments

Comments
 (0)