Skip to content

Commit

Permalink
Append log
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfriend committed Feb 21, 2025
1 parent e0c1c79 commit d43a7a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/lib/common/providers/notifiers/sync_notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import 'package:acter/common/extensions/options.dart';
import 'package:acter/common/models/sync_state/sync_state.dart';
import 'package:acter/features/home/providers/client_providers.dart';
import 'package:acter_flutter_sdk/acter_flutter_sdk_ffi.dart' as ffi;
import 'package:logging/logging.dart';
import 'package:riverpod/riverpod.dart';
import 'package:sentry_flutter/sentry_flutter.dart';

final _log = Logger('a3::common::sync_notifier');

Check warning on line 12 in app/lib/common/providers/notifiers/sync_notifier.dart

View check run for this annotation

Codecov / codecov/patch

app/lib/common/providers/notifiers/sync_notifier.dart#L12

Added line #L12 was not covered by tests

// ignore_for_file: avoid_print
class SyncNotifier extends Notifier<SyncState> {
late ffi.Client client;
Expand Down Expand Up @@ -69,6 +72,7 @@ class SyncNotifier extends Notifier<SyncState> {
_syncPoller?.cancel();
_errorPoller?.cancel();

_log.info('================= startSync ====================');

Check warning on line 75 in app/lib/common/providers/notifiers/sync_notifier.dart

View check run for this annotation

Codecov / codecov/patch

app/lib/common/providers/notifiers/sync_notifier.dart#L75

Added line #L75 was not covered by tests
final sync = syncState = client.startSync();

_syncListener = sync.firstSyncedRx(); // keep it resident in memory
Expand Down

0 comments on commit d43a7a0

Please sign in to comment.