Skip to content

Commit

Permalink
cmd: Properly output telemetry information (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored Jun 21, 2018
1 parent d76ff9d commit 9994967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func RunServe(
n.Use(negronilogrus.NewMiddlewareFromLogger(logger, "keto"))
corsHandler := cors.New(corsx.ParseOptions()).Handler(n)

if ok, _ := cmd.Flags().GetBool("disable-telemetry"); !ok {
if ok, _ := cmd.Flags().GetBool("disable-telemetry"); !ok && viper.GetString("DATABASE_URL") != "memory" {
logger.Println("Transmission of telemetry data is enabled, to learn more go to: https://www.ory.sh/docs/guides/latest/telemetry/")

m := metrics.NewMetricsManager(
Expand Down

0 comments on commit 9994967

Please sign in to comment.