aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-05-19 01:51:49 +0800
committerGitHub <noreply@github.com>2018-05-19 01:51:49 +0800
commit666c1f1b3056594026a95ad8499de32ff645dace (patch)
treed3f0c51c686237d49f51aa0a06ed600ff43d059e
parent708422432c634ffbd4c73388f980c43f766b3355 (diff)
downloadtangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar.gz
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar.bz2
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar.lz
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar.xz
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.tar.zst
tangerine-wallet-browser-666c1f1b3056594026a95ad8499de32ff645dace.zip
token-util - warn via loglevel on token lookup failure
-rw-r--r--ui/app/token-util.js3
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