mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-21 15:53:32 +01:00
Disable usage data stat tracking for self-hosted servers for #246
This commit is contained in:
parent
39b092ee79
commit
39e243c078
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user