Do not load entire log into memory.

This commit is contained in:
Greyson Parrelli
2025-08-11 12:28:21 -04:00
parent 2988e22612
commit 86ef32cd4c
4 changed files with 140 additions and 93 deletions

View File

@@ -41,7 +41,7 @@ object DebugLogsViewer {
}
@JvmStatic
fun presentLines(webview: WebView, lines: String) {
fun appendLines(webview: WebView, lines: String) {
// Set the debug log lines
val escaped = JSONObject.quote(lines)
ThreadUtil.runOnMain { webview.evaluateJavascript("editor.insert($escaped); logLines+=$escaped;", null) }