Disable usage data stat tracking for self-hosted servers for #246

This commit is contained in:
David Dworken 2024-09-15 18:29:05 -07:00
parent 39b092ee79
commit 39e243c078
No known key found for this signature in database

View File

@ -225,7 +225,7 @@ func main() {
server.IsProductionEnvironment(isProductionEnvironment()),
server.WithCron(cron),
server.WithUpdateInfo(release.BuildUpdateInfo(release.Version)),
server.TrackUsageData(true),
server.TrackUsageData(isProductionEnvironment() || isTestEnvironment() || os.Getenv("HISHTORY_ENABLE_USAGE_STATS") != ""),
)
go runBackgroundJobs(context.Background(), srv, db, stats)