diff options
author | kumavis <aaron@kumavis.me> | 2018-06-13 03:08:06 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-06-13 03:08:06 +0800 |
commit | 604289c96cde7e5f4634fe5e76a50dfa9174fcbd (patch) | |
tree | 3d6bb84fd1245c205245d179f56bf067e63acc81 /app/scripts/controllers/transactions/index.js | |
parent | 177cc3f280f26c5fb4cfc1b934e95b9d16def1a6 (diff) | |
download | tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.gz tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.tar.zst tangerine-wallet-browser-604289c96cde7e5f4634fe5e76a50dfa9174fcbd.zip |
controllers - transaction - prefer log over console
Diffstat (limited to 'app/scripts/controllers/transactions/index.js')
-rw-r--r-- | app/scripts/controllers/transactions/index.js | 4 |
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() |