mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-17 18:31:43 +02:00
* Add TODO * Disable usage data stat tracking for self-hosted servers for #246
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user