Skip to content

Commit ec7cb6c

Browse files
authored
Disable metrics reporting by default (#434)
Metrics reporting will be disabled by default in case the metrics API is turned off
1 parent 63eed66 commit ec7cb6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

analytics/analytics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Init(ctx context.Context, db *gorm.DB) error {
5757
db.WithContext(ctx).Clauses(where).First(&identity)
5858
Identity = identity.Value
5959

60-
if os.Getenv("SINGULARITY_ANALYTICS") == "0" {
60+
if os.Getenv("SINGULARITY_ANALYTICS") != "1" {
6161
Enabled = false
6262
}
6363
return nil

0 commit comments

Comments
 (0)