Merge pull request #3331 from matrix-org/jaywink/extra-rageshake-cleanup
Tweak rageshake logging messagespull/21833/head
commit
dc0c7e3053
|
@ -88,7 +88,9 @@ class ConsoleLogger {
|
||||||
// run.
|
// run.
|
||||||
// Example line:
|
// Example line:
|
||||||
// 2017-01-18T11:23:53.214Z W Failed to set badge count
|
// 2017-01-18T11:23:53.214Z W Failed to set badge count
|
||||||
const line = `${ts} ${level} ${args.join(' ')}\n`;
|
let line = `${ts} ${level} ${args.join(' ')}\n`;
|
||||||
|
// Do some cleanup
|
||||||
|
line = line.replace(/token=[a-zA-Z0-9-]+/gm, 'token=xxxxx');
|
||||||
// Using + really is the quickest way in JS
|
// Using + really is the quickest way in JS
|
||||||
// http://jsperf.com/concat-vs-plus-vs-join
|
// http://jsperf.com/concat-vs-plus-vs-join
|
||||||
this.logs += line;
|
this.logs += line;
|
||||||
|
|
Loading…
Reference in New Issue