Attempt to flush the rageshake logs on close
... so that we get to see what happened in the last 30s.
This commit is contained in:
parent
fab50bc1f1
commit
cc56ef3abd
4 changed files with 23 additions and 0 deletions
|
@ -427,6 +427,13 @@ module.exports = {
|
|||
return initPromise;
|
||||
},
|
||||
|
||||
flush: function() {
|
||||
if (!store) {
|
||||
return;
|
||||
}
|
||||
store.flush();
|
||||
},
|
||||
|
||||
/**
|
||||
* Clean up old logs.
|
||||
* @return Promise Resolves if cleaned logs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue