Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter committed Jun 27, 2024
1 parent 09c8c4a commit 53b6262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ where you can filter and browse well formatted application output.
go modes.ConsumeStdin(http.Ch)
}

if !config.AnalyticsEnabled {
utils.Logger.Warn("No opt-out from analytics, we'll be receiving anonymous usage data, which will be used to improve the product. To opt-out use the flag --no-analytics.")
}

http.HandleHttp(config, http.InitializeClients(*config), nil)
http.StartWebserver(config)
},
Expand Down Expand Up @@ -197,10 +201,6 @@ func parseConfig(cmd *cobra.Command) {

modes.FallthroughGlobal, _ = cmd.Flags().GetBool("fallthrough")
modes.DisableANSICodeStripping, _ = cmd.Flags().GetBool("disable-ansi-code-stripping")

if !config.AnalyticsEnabled {
utils.Logger.Warn("No opt-out from analytics, we'll be receiving anonymous usage data, which will be used to improve the product. To opt-out use the flag --no-analytics.")
}
}

func init() {
Expand Down

0 comments on commit 53b6262

Please sign in to comment.