Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3331 from matrix-org/jaywink/extra-rageshake-cleanup
Browse files Browse the repository at this point in the history
Tweak rageshake logging messages
  • Loading branch information
turt2live authored Aug 23, 2019
2 parents f39dc6f + f505aa0 commit dc0c7e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rageshake/rageshake.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class ConsoleLogger {
// run.
// Example line:
// 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
// http://jsperf.com/concat-vs-plus-vs-join
this.logs += line;
Expand Down

0 comments on commit dc0c7e3

Please sign in to comment.