Log actual HTML render exception

Change-Id: I98d4274e92812df3e1143f7e8ea63b56fcbbc091
This commit is contained in:
SpiritCroc 2023-08-06 11:47:28 +02:00
parent e448cce8d9
commit 030e1f853f

View file

@ -381,7 +381,7 @@ class EventHtmlRenderer @Inject constructor(
val parsed = markwon.parse(text) val parsed = markwon.parse(text)
renderAndProcess(parsed, postProcessors) renderAndProcess(parsed, postProcessors)
} catch (failure: Throwable) { } catch (failure: Throwable) {
Timber.v("Fail to render $text to html") Timber.v(failure, "Fail to render $text to html")
text text
} }
} }
@ -394,7 +394,7 @@ class EventHtmlRenderer @Inject constructor(
return try { return try {
renderAndProcess(node, postProcessors) renderAndProcess(node, postProcessors)
} catch (failure: Throwable) { } catch (failure: Throwable) {
Timber.v("Fail to render $node to html") Timber.v(failure, "Fail to render $node to html")
return null return null
} }
} }