From 84d9976697f0814207ab07ac9532c795ce9b7b71 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 31 Jan 2025 11:59:52 +0200 Subject: [PATCH] Add logs for push errors on android (#8540) (#8544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 737fa985ef63616d67a07fad72fc2e60e4388e97) Co-authored-by: Daniel Espino GarcĂ­a --- .../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")