From 737fa985ef63616d67a07fad72fc2e60e4388e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Fri, 31 Jan 2025 10:35:10 +0100 Subject: [PATCH] Add logs for push errors on android (#8540) --- .../java/com/mattermost/helpers/PushNotificationDataHelper.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/app/src/main/java/com/mattermost/helpers/PushNotificationDataHelper.kt b/android/app/src/main/java/com/mattermost/helpers/PushNotificationDataHelper.kt index b5f83233a..9a030bd82 100644 --- a/android/app/src/main/java/com/mattermost/helpers/PushNotificationDataHelper.kt +++ b/android/app/src/main/java/com/mattermost/helpers/PushNotificationDataHelper.kt @@ -115,6 +115,8 @@ class PushNotificationDataRunnable { } } catch (e: Exception) { e.printStackTrace() + val eMessage = e.message ?: "Error with no message" + TurboLog.e("ReactNative", "Error processing push notification error=$eMessage") } finally { db?.close() TurboLog.i("ReactNative", "DONE fetching notification data")