Better logs

This commit is contained in:
Benoit Marty 2020-01-13 21:39:41 +01:00
parent ae26bf3369
commit ca157c7567

View file

@ -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")
}
}