Skip to content

Commit 958f430

Browse files
committed
Update Stat Tracker Always Enable
1 parent 468e7e9 commit 958f430

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/src/logging/stat_tracker.dart

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import 'package:meta/meta.dart';
88
import '../../codelessly_sdk.dart';
99
import '../utils/debouncer.dart';
1010

11-
const _kDisableStatReporting = false;
12-
1311
/// A class that tracks statistics of various operations in the SDK.
1412
///
1513
/// This tracker sends stats to Codelessly's server to help monitor usage and performance.
@@ -44,12 +42,7 @@ class StatTracker {
4442
/// with too many writes.
4543
final DeBouncer debouncer = DeBouncer(const Duration(seconds: 1));
4644

47-
bool get disabled =>
48-
!enabled ||
49-
_kDisableStatReporting ||
50-
clientType == kCodelesslyEditor ||
51-
projectId == null ||
52-
serverUrl == null;
45+
bool get disabled => !enabled || projectId == null || serverUrl == null;
5346

5447
@mustCallSuper
5548
void init({

0 commit comments

Comments
 (0)