diff options
author | Frankie <frankie.diamond@gmail.com> | 2018-05-22 06:06:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 06:06:18 +0800 |
commit | 5e67951c1ae22f61bf2045e6a069aa02baf427ff (patch) | |
tree | 8425dcb2826e89b4377e940e54210245f2a80515 | |
parent | 793737f5bc22188b8c1ee154830aa7a6f0a3c04f (diff) | |
parent | 666c1f1b3056594026a95ad8499de32ff645dace (diff) | |
download | tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar.gz tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar.bz2 tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar.lz tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar.xz tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.tar.zst tangerine-wallet-browser-5e67951c1ae22f61bf2045e6a069aa02baf427ff.zip |
Merge pull request #4295 from MetaMask/kumavis-patch-3
ui - token-util - warn via loglevel on token lookup failure
-rw-r--r-- | ui/app/token-util.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 920442bfc..8c5b37d7b 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -1,3 +1,4 @@ +const log = require('loglevel') const util = require('./util') function tokenInfoGetter () { @@ -29,7 +30,7 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { token.decimals(), ]) } catch (err) { - console.log(`symbol() and decimal() calls for token at address ${tokenAddress} resulted in error:`, err) + log.warn(`symbol() and decimal() calls for token at address ${tokenAddress} resulted in error:`, err) } const [ symbol = [], decimals = [] ] = result |