From 030e1f853fd546be36839ea0713daddf4e70caf5 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 6 Aug 2023 11:47:28 +0200 Subject: [PATCH] Log actual HTML render exception Change-Id: I98d4274e92812df3e1143f7e8ea63b56fcbbc091 --- .../java/im/vector/app/features/html/EventHtmlRenderer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/html/EventHtmlRenderer.kt b/vector/src/main/java/im/vector/app/features/html/EventHtmlRenderer.kt index 6d1202f86f..3ab106d774 100644 --- a/vector/src/main/java/im/vector/app/features/html/EventHtmlRenderer.kt +++ b/vector/src/main/java/im/vector/app/features/html/EventHtmlRenderer.kt @@ -381,7 +381,7 @@ class EventHtmlRenderer @Inject constructor( val parsed = markwon.parse(text) renderAndProcess(parsed, postProcessors) } catch (failure: Throwable) { - Timber.v("Fail to render $text to html") + Timber.v(failure, "Fail to render $text to html") text } } @@ -394,7 +394,7 @@ class EventHtmlRenderer @Inject constructor( return try { renderAndProcess(node, postProcessors) } catch (failure: Throwable) { - Timber.v("Fail to render $node to html") + Timber.v(failure, "Fail to render $node to html") return null } }