Skip to content

Commit

Permalink
cmd: Fix disable-telemetry check (ory#1258)
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Tescher <[email protected]>
  • Loading branch information
jtescher authored and aeneasr committed Jan 16, 2019
1 parent e2b88d2 commit d7be0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func setup(c *config.Config, cmd *cobra.Command, args []string, name string) (ha
c.GetPrometheusMetrics(),
)

if flagx.MustGetBool(cmd, "disable-telemetry") {
if !flagx.MustGetBool(cmd, "disable-telemetry") {
c.GetLogger().Println("Transmission of telemetry data is enabled, to learn more go to: https://www.ory.sh/docs/ecosystem/sqa")

enable := !(c.DatabaseURL == "" || c.DatabaseURL == "memory" || c.Issuer == "" || strings.Contains(c.Issuer, "localhost"))
Expand Down

0 comments on commit d7be0c7

Please sign in to comment.