diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-12 05:24:35 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-12 05:24:35 +0800 |
commit | 243d83dd336de01644f3d4ec00f49aa22b641005 (patch) | |
tree | 30e6aa1f09a8cd99f0cb018714de10b3d732bbbd /app/scripts | |
parent | b3def32f7aad24d9df0af89c347eb53a95272229 (diff) | |
download | tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar.gz tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar.bz2 tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar.lz tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar.xz tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.tar.zst tangerine-wallet-browser-243d83dd336de01644f3d4ec00f49aa22b641005.zip |
Separate developmentMode conditional to only wrap log.
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/metamask-controller.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index ac0f32117..269bc5afd 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -94,8 +94,10 @@ module.exports = class MetamaskController { function logger (err, request, response) { if (err) return console.error(err) - if (developmentMode && !request.isMetamaskInternal) { - console.log(`RPC (${originDomain}):`, request, '->', response) + if (!request.isMetamaskInternal) { + if (developmentMode) { + console.log(`RPC (${originDomain}):`, request, '->', response) + } if (response.error) { console.error('Error in RPC response:\n', response.error) } |