aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/metamask-controller.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-08-12 11:53:15 +0800
committerGitHub <noreply@github.com>2016-08-12 11:53:15 +0800
commit8943e86470f3a5cada9208615c1ea70cae2a0b85 (patch)
tree0a8511d74baa587af81eec3d3bb6c4f6b1e971f9 /app/scripts/metamask-controller.js
parenta5cfa937ef216ae3e0ec687e39bffb1c2bfaed82 (diff)
parent878a01a294c8dbc915ceb7a5f52f0006247fb4b4 (diff)
downloadtangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.gz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.bz2
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.lz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.xz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.zst
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.zip
Merge branch 'master' into CustomRpcLoadingBug
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r--app/scripts/metamask-controller.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index e7e96a472..2c141a402 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -94,7 +94,9 @@ module.exports = class MetamaskController {
function logger (err, request, response) {
if (err) return console.error(err)
if (!request.isMetamaskInternal) {
- console.log(`RPC (${originDomain}):`, request, '->', response)
+ if (global.METAMASK_DEBUG) {
+ console.log(`RPC (${originDomain}):`, request, '->', response)
+ }
if (response.error) {
console.error('Error in RPC response:\n', response.error)
}
@@ -218,7 +220,9 @@ module.exports = class MetamaskController {
// Log blocks
processBlock (block) {
- console.log(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`)
+ if (global.METAMASK_DEBUG) {
+ console.log(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`)
+ }
this.verifyNetwork()
}