From 2b397a65fd23498c438561b816088537c15f768c Mon Sep 17 00:00:00 2001 From: ggurdin Date: Tue, 16 Jan 2024 15:18:27 -0500 Subject: [PATCH] remove print statements from testing --- lib/pangea/controllers/class_controller.dart | 1 - lib/pangea/controllers/subscription_controller.dart | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/pangea/controllers/class_controller.dart b/lib/pangea/controllers/class_controller.dart index b9a54ce4d3..c91eab1c0a 100644 --- a/lib/pangea/controllers/class_controller.dart +++ b/lib/pangea/controllers/class_controller.dart @@ -66,7 +66,6 @@ class ClassController extends BaseController { try { //question for gabby: why do we need this in two places? if (!_pangeaController.subscriptionController.isSubscribed) { - print("Unsubscribed user in class_controller. Showing paywall."); await _pangeaController.subscriptionController.showPaywall(context); } } catch (err) { diff --git a/lib/pangea/controllers/subscription_controller.dart b/lib/pangea/controllers/subscription_controller.dart index 1c3d6abfec..0d8d28e17f 100644 --- a/lib/pangea/controllers/subscription_controller.dart +++ b/lib/pangea/controllers/subscription_controller.dart @@ -47,10 +47,9 @@ class SubscriptionController extends BaseController { subscription?.currentSubscription?.isTrial ?? false; Future initialize() async { - print("Initializing subscription controller"); try { if (_pangeaController.matrixState.client.userID == null) { - print( + debugPrint( "Attempted to initalize subscription information with null userId", ); return; @@ -60,15 +59,11 @@ class SubscriptionController extends BaseController { ? WebSubscriptionInfo(pangeaController: _pangeaController) : MobileSubscriptionInfo(pangeaController: _pangeaController); - print("Configuring subscription controller"); await subscription!.configure(); - print("Configured subscription controller"); - if (activatedNewUserTrial) { setNewUserTrial(); } - print("Setting initalized true"); initialized = true; if (!kIsWeb) { @@ -94,7 +89,7 @@ class SubscriptionController extends BaseController { } setState(); } catch (e, s) { - print("Failed to initialize subscription controller"); + debugPrint("Failed to initialize subscription controller"); ErrorHandler.logError(e: e, s: s); } } @@ -136,9 +131,6 @@ class SubscriptionController extends BaseController { BuildContext context, [ bool forceShow = false, ]) async { - print( - "User is not subscribed. Showing paywall. Initialized: $initialized", - ); try { if (!initialized) { await initialize();