diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7899be8..9771581 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: channel: 'stable' - run: dart pub get - name: Build app - run: dart compile exe -D POSTHOG_API_KEY="${{ secrets.POSTHOG_API_KEY }}" bin/stacked.dart + run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart - name: release uses: cycjimmy/semantic-release-action@v3 with: diff --git a/lib/src/services/posthog_service.dart b/lib/src/services/posthog_service.dart index 6ee8b63..e257acb 100644 --- a/lib/src/services/posthog_service.dart +++ b/lib/src/services/posthog_service.dart @@ -45,8 +45,6 @@ class PosthogService { 'telemetry_config', compactionStrategy: (entries, deletedEntries) => deletedEntries > 50, ); - - _log.info(message: 'Initialized with Key:${_apiKey.substring(0, 2)}'); } Future _capture({ @@ -56,7 +54,7 @@ class PosthogService { try { if (!enabled) return; - if (_apiKey.isEmpty) throw PostHogApiKeyNotFoundException(); + if (_apiKey.isEmpty) return; final version = await _pubService.getCurrentVersion();