Skip to content

Commit 15ab173

Browse files
committed
Reduce rageshake log size to 1MB
... 50MB turned out to be quite a lot.
1 parent 338ab4d commit 15ab173

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/vector/rageshake.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ import q from "q";
3737
// actually timestamps. We then purge the remaining logs. We also do this
3838
// purge on startup to prevent logs from accumulating.
3939

40+
// the frequency with which we flush to indexeddb
4041
const FLUSH_RATE_MS = 30 * 1000;
4142

43+
// the length of log data we keep in indexeddb (and include in the reports)
44+
const MAX_LOG_SIZE = 1024 * 1024 * 1; // 1 MB
45+
4246
// A class which monkey-patches the global console and stores log lines.
4347
class ConsoleLogger {
4448
constructor() {
@@ -232,7 +236,6 @@ class IndexedDBLogStore {
232236
* is a big string with all the new-line delimited logs.
233237
*/
234238
async consume() {
235-
const MAX_LOG_SIZE = 1024 * 1024 * 50; // 50 MB
236239
const db = this.db;
237240

238241
// Returns: a string representing the concatenated logs for this ID.

0 commit comments

Comments
 (0)