mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
only show last 10 lines of output in crash dialog
This commit is contained in:
parent
b95adf2ed6
commit
c4e659c079
1 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue