Skip to content

Commit

Permalink
fix: enable telemetry by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Jul 6, 2022
1 parent af35f55 commit 9dc8c7c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions cmd/server/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
package server

import (
"os"
"strconv"

"github.com/spf13/cobra"

"github.com/ory/keto/cmd/helpers"
Expand Down Expand Up @@ -46,17 +43,8 @@ on configuration options, open the configuration documentation:
return reg.ServeAllSQA(cmd)
},
}
disableTelemetry, err := strconv.ParseBool(os.Getenv("DISABLE_TELEMETRY"))
if err != nil {
disableTelemetry = true
}
sqaOptOut, err := strconv.ParseBool(os.Getenv("SQA_OPT_OUT"))
if err != nil {
sqaOptOut = true
}

cmd.Flags().Bool("disable-telemetry", disableTelemetry, "Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa")
cmd.Flags().Bool("sqa-opt-out", sqaOptOut, "Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa")
cmd.Flags().Bool("sqa-opt-out", false, "Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa")

return cmd
}
Expand Down

0 comments on commit 9dc8c7c

Please sign in to comment.