diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-05-01 03:38:38 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-05-01 03:38:38 +0800 |
commit | a3149c17526c320f0cfdbe07a54ca1c2f01a6fad (patch) | |
tree | 35f056781a67ac794da27b1b0181e1c1c9175325 | |
parent | 527068b84ef17bb88a29b699c93b3f1ed7645b24 (diff) | |
download | tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar.gz tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar.bz2 tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar.lz tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar.xz tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.tar.zst tangerine-wallet-browser-a3149c17526c320f0cfdbe07a54ca1c2f01a6fad.zip |
Use loglevel for more logs
-rw-r--r-- | app/scripts/metamask-controller.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index b91b5efe8..2e4bf07e1 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -341,9 +341,7 @@ module.exports = class MetamaskController extends EventEmitter { console.error('Error in RPC response:\n', response.error) } if (request.isMetamaskInternal) return - if (global.METAMASK_DEBUG) { - console.log(`RPC (${originDomain}):`, request, '->', response) - } + log.info(`RPC (${originDomain}):`, request, '->', response) } } @@ -591,9 +589,7 @@ module.exports = class MetamaskController extends EventEmitter { // Log blocks logBlock (block) { - if (global.METAMASK_DEBUG) { - console.log(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`) - } + log.info(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`) this.verifyNetwork() } @@ -682,9 +678,7 @@ module.exports = class MetamaskController extends EventEmitter { this.setNetworkState('loading') return } - if (global.METAMASK_DEBUG) { - console.log('web3.getNetwork returned ' + network) - } + log.info('web3.getNetwork returned ' + network) this.setNetworkState(network) }) } |