Skip to content
Permalink
Browse files

cmd: Fix disable-telemetry check (#1258)

Signed-off-by: Julian Tescher <jatescher@gmail.com>
  • Loading branch information...
jtescher authored and aeneasr committed Jan 16, 2019
1 parent e2b88d2 commit d7be0c7328bfda9e24c5aeb02389aca814e40de1
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmd/server/handler.go
@@ -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"))

0 comments on commit d7be0c7

Please sign in to comment.
You can’t perform that action at this time.