Skip to content

Commit

Permalink
keep grin logs < 30 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojay committed Jul 22, 2019
1 parent 019d0e9 commit 3656135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/Gnode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export default {
//console.log(grinNodeLog)
tail.on("line", function(data) {
//console.log(data)
if(log.length >= 30){log.shift()}
log.push(data)
});
Expand Down

0 comments on commit 3656135

Please sign in to comment.