only show last 10 lines of output in crash dialog

This commit is contained in:
liamcottle
2024-08-16 21:37:23 +12:00
parent b95adf2ed6
commit c4e659c079

View File

@@ -135,9 +135,9 @@ app.whenReady().then(async () => {
// log
log(data.toString());
// keep track of last 500 stdout lines
// keep track of last 10 stdout lines
stdoutLines.push(data.toString());
if(stdoutLines.length > 500){
if(stdoutLines.length > 10){
stdoutLines.shift();
}
@@ -151,9 +151,9 @@ app.whenReady().then(async () => {
// log
log(data.toString());
// keep track of last 500 stderr lines
// keep track of last 10 stderr lines
stderrLines.push(data.toString());
if(stderrLines.length > 500){
if(stderrLines.length > 10){
stderrLines.shift();
}