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
1 changed files with 2 additions and 2 deletions

View File

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