From 74ce1260fd24a2d2046dc39c2b2d21ee18e7d665 Mon Sep 17 00:00:00 2001 From: Julian Tescher Date: Tue, 15 Jan 2019 13:39:59 -0800 Subject: [PATCH] Fix disable-telemetry check Signed-off-by: Julian Tescher --- cmd/server/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/handler.go b/cmd/server/handler.go index 496716a0d20..da100a8023b 100644 --- a/cmd/server/handler.go +++ b/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"))