From ca157c7567c839d3f35594ca64b501acfb2e11c7 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 13 Jan 2020 21:39:41 +0100 Subject: [PATCH] Better logs --- .../internal/crypto/attachments/MXEncryptedAttachments.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/attachments/MXEncryptedAttachments.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/attachments/MXEncryptedAttachments.kt index 7c993d9cc0..3c2aae3cd5 100755 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/attachments/MXEncryptedAttachments.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/attachments/MXEncryptedAttachments.kt @@ -181,9 +181,9 @@ object MXEncryptedAttachments { return ByteArrayInputStream(outputStream.toByteArray()) .also { Timber.v("Decrypt in ${System.currentTimeMillis() - t0}ms") } } catch (oom: OutOfMemoryError) { - Timber.e(oom, "## decryptAttachment() : failed ${oom.message}") + Timber.e(oom, "## decryptAttachment() failed: OOM") } catch (e: Exception) { - Timber.e(e, "## decryptAttachment() : failed ${e.message}") + Timber.e(e, "## decryptAttachment() failed") } }