Skip to content

Commit

Permalink
chore: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jul 5, 2024
1 parent dced0f1 commit 39cb182
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'package:appflowy_result/appflowy_result.dart';
import 'package:collection/collection.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/uuid.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:protobuf/protobuf.dart';
Expand Down Expand Up @@ -356,6 +357,17 @@ class SpaceBloc extends Bloc<SpaceEvent, SpaceState> {
final publicSpaces = publicViews.where((e) => e.isSpace);
final privateSpaces = privateViews.where((e) => e.isSpace);

for (final view in publicViews) {
debugPrint('public view: ${view.name}');
}

for (final view in privateViews) {
debugPrint('private view: ${view.name}');
}

debugPrint('publicSpaces: ${publicSpaces.length}');
debugPrint('privateSpaces: ${privateSpaces.length}');

return ([...publicSpaces, ...privateSpaces], publicViews, privateViews);
}

Expand Down

0 comments on commit 39cb182

Please sign in to comment.