From 1885a659fc18dba001c581eedbafd7457c4ba768 Mon Sep 17 00:00:00 2001 From: Greg Price <greg@zulip.com> Date: Mon, 16 Oct 2023 17:24:14 -0700 Subject: [PATCH] fixup various: use debugLog rather than print --- lib/notifications.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/notifications.dart b/lib/notifications.dart index d55d4b4f546..3dba950d918 100644 --- a/lib/notifications.dart +++ b/lib/notifications.dart @@ -93,7 +93,7 @@ class NotificationService { void _onNotificationOpened(NotificationResponse response) async { final data = MessageFcmMessage.fromJson(jsonDecode(response.payload!)); - print('opened notif: message ${data.zulipMessageId}, content ${data.content}'); + assert(debugLog('opened notif: message ${data.zulipMessageId}, content ${data.content}')); final navigator = navigatorKey.currentState; if (navigator == null) return; // TODO(log) handle @@ -109,7 +109,7 @@ class NotificationService { DmNarrow(allRecipientIds: allRecipientIds, selfUserId: account.userId), }; - print(' account: $account, narrow: $narrow'); + assert(debugLog(' account: $account, narrow: $narrow')); // TODO(nav): Better interact with existing nav stack on notif open navigator.push(MaterialPageRoute(builder: (context) => PerAccountStoreWidget(accountId: account.id,