Skip to content

Commit

Permalink
Telemetry: fix stacktrace redaction
Browse files Browse the repository at this point in the history
  • Loading branch information
dcposch committed Sep 2, 2016
1 parent 3f6cc97 commit b93f41f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/lib/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function logUncaughtError (procName, e) {
// - Privacy: remove personal info like C:\Users\<full name>
// - Aggregation: this lets us find which stacktraces occur often
stack = stack.replace(/\(.*app.asar/g, '(...')
stack = stack.replace(/at .*app.asar/g, 'at ...')

// We need to POST the telemetry object, make sure it stays < 100kb
if (telemetry.uncaughtErrors.length > 20) return
Expand Down

0 comments on commit b93f41f

Please sign in to comment.