aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-13 03:08:06 +0800
committerkumavis <aaron@kumavis.me>2018-06-13 03:08:06 +0800
commit604289c96cde7e5f4634fe5e76a50dfa9174fcbd (patch)
tree3d6bb84fd1245c205245d179f56bf067e63acc81 /app/scripts/controllers
parent177cc3f280f26c5fb4cfc1b934e95b9d16def1a6 (diff)
downloadtangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.gz
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.bz2
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.lz
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.xz
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.zst
tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.zip
controllers - transaction - prefer log over console
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/transactions/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js
index 339052543..8e2288aed 100644
--- a/app/scripts/controllers/transactions/index.js
+++ b/app/scripts/controllers/transactions/index.js
@@ -165,7 +165,7 @@ class TransactionController extends EventEmitter {
// add default tx params
txMeta = await this.addTxGasDefaults(txMeta)
} catch (error) {
- console.log(error)
+ log.warn(error)
this.txStateManager.setTxStatusFailed(txMeta.id, error)
throw error
}
@@ -268,7 +268,7 @@ class TransactionController extends EventEmitter {
try {
this.txStateManager.setTxStatusFailed(txId, err)
} catch (err) {
- console.error(err)
+ log.error(err)
}
// must set transaction to submitted/failed before releasing lock
if (nonceLock) nonceLock.releaseLock()