aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-12 09:58:23 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-12 09:58:23 +0800
commit2b0c6953e27b937d8ff75aad00786e3501599a73 (patch)
tree8e4e7d0e99636e4fa1a06627fc71ef3886445d76 /app
parentb8856d765daeb9c3b5be9a3067f977d85222639c (diff)
downloadtangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar.gz
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar.bz2
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar.lz
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar.xz
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.tar.zst
tangerine-wallet-browser-2b0c6953e27b937d8ff75aad00786e3501599a73.zip
Create global variable that changes ui logging.
Diffstat (limited to 'app')
-rw-r--r--app/scripts/config.js2
-rw-r--r--app/scripts/metamask-controller.js9
2 files changed, 2 insertions, 9 deletions
diff --git a/app/scripts/config.js b/app/scripts/config.js
index 620872249..ba012c6b8 100644
--- a/app/scripts/config.js
+++ b/app/scripts/config.js
@@ -2,7 +2,6 @@ const MAINET_RPC_URL = 'https://mainnet.infura.io/'
const TESTNET_RPC_URL = 'https://morden.infura.io/'
const DEFAULT_RPC_URL = TESTNET_RPC_URL
const CLASSIC_RPC_URL = 'https://mainnet-nf.infura.io/'
-const DEVELOPMENT_MODE = false
module.exports = {
network: {
@@ -11,5 +10,4 @@ module.exports = {
testnet: TESTNET_RPC_URL,
classic: CLASSIC_RPC_URL,
},
- developmentMode: DEVELOPMENT_MODE,
}
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 269bc5afd..e7e96a472 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -7,7 +7,6 @@ const HostStore = require('./lib/remote-store.js').HostStore
const Web3 = require('web3')
const ConfigManager = require('./lib/config-manager')
const extension = require('./lib/extension')
-const developmentMode = require('./config').developmentMode
module.exports = class MetamaskController {
@@ -95,9 +94,7 @@ module.exports = class MetamaskController {
function logger (err, request, response) {
if (err) return console.error(err)
if (!request.isMetamaskInternal) {
- if (developmentMode) {
- console.log(`RPC (${originDomain}):`, request, '->', response)
- }
+ console.log(`RPC (${originDomain}):`, request, '->', response)
if (response.error) {
console.error('Error in RPC response:\n', response.error)
}
@@ -221,9 +218,7 @@ module.exports = class MetamaskController {
// Log blocks
processBlock (block) {
- if (developmentMode) {
- console.log(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`)
- }
+ console.log(`BLOCK CHANGED: #${block.number.toString('hex')} 0x${block.hash.toString('hex')}`)
this.verifyNetwork()
}