From 22ba703c5361b722c4f23de0d833b436dc003a66 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 24 Sep 2015 12:18:37 -0700 Subject: [PATCH] fix(debug-data): Do not include curl history in the feedback email --- .../worker-ui/lib/developer-bar-store.coffee | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal_packages/worker-ui/lib/developer-bar-store.coffee b/internal_packages/worker-ui/lib/developer-bar-store.coffee index 241ba39e5..ee6b54695 100644 --- a/internal_packages/worker-ui/lib/developer-bar-store.coffee +++ b/internal_packages/worker-ui/lib/developer-bar-store.coffee @@ -118,14 +118,6 @@ class DeveloperBarStore extends NylasStore user = AccountStore.current().name - debugData = JSON.stringify({ - queries: _.values(@curlHistory()) - }, null, '\t') - - # Remove API tokens from URLs included in the debug data - # This regex detects ://user:pass@ and removes it. - debugData = debugData.replace(/:\/\/(\w)*:(\w)?@/g, '://') - draft = new Message from: [AccountStore.current().me()] to: [ @@ -153,8 +145,6 @@ class DeveloperBarStore extends NylasStore I'm using Nylas Mail #{atom.getVersion()} and my platform is #{process.platform}-#{process.arch}.
--
#{user}
- -- Extra Debugging Data --
- #{debugData} """ DatabaseStore.persistModel(draft).then -> Actions.composePopoutDraft(draft.clientId)