diff --git a/cmd/ftl-controller/main.go b/cmd/ftl-controller/main.go index 6848d13830..1744e3fe2d 100644 --- a/cmd/ftl-controller/main.go +++ b/cmd/ftl-controller/main.go @@ -59,9 +59,7 @@ func main() { // The FTL controller currently only supports AWS Secrets Manager as a secrets provider. awsConfig, err := config.LoadDefaultConfig(ctx) - if err != nil { - kctx.Fatalf(err.Error()) - } + kctx.FatalIfErrorf(err) secretsResolver := cf.NewASM(ctx, secretsmanager.NewFromConfig(awsConfig), cli.ControllerConfig.Advertise, dal) secretsProviders := []cf.Provider[cf.Secrets]{secretsResolver} sm, err := cf.New[cf.Secrets](ctx, secretsResolver, secretsProviders) diff --git a/common/configuration/asm_leader.go b/common/configuration/asm_leader.go index 34b9f23e80..9fe77f0d0a 100644 --- a/common/configuration/asm_leader.go +++ b/common/configuration/asm_leader.go @@ -107,7 +107,7 @@ func (l *asmLeader) watchForUpdates(ctx context.Context, clock clock.Clock) { continue } // back off if we fail to sync - logger.Warnf("unable to sync ASM secrets: %v", err) + logger.Warnf("Unable to sync ASM secrets: %v", err) nextSync = clock.Now().Add(backOff) if nextSync.After(clock.Now().Add(syncInterval)) { nextSync = clock.Now().Add(syncInterval)