diff options
| author | Adam Soltys <[email protected]> | 2020-03-05 13:51:13 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-05 13:51:13 -0800 |
| commit | 5cb36445b47b7b2c888d802088726b6bec88651a (patch) | |
| tree | 3f3921189646d7fb6d9d6a4dabe68781aa472574 /rates.js | |
| parent | af5e3116eb8bec64f40ebde74d1ec8c47ef971a2 (diff) | |
| download | coinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.tar.gz coinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.zip | |
pino logger
Diffstat (limited to 'rates.js')
| -rw-r--r-- | rates.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ const axios = require("axios"); const config = require("./config"); -const l = console.log; +const l = require("pino")(); module.exports = (app, socket) => { let binance = require("./binance")(app, socket); @@ -30,7 +30,7 @@ module.exports = (app, socket) => { rates.VES = res.data["exchange_rates"].VEF_USD / 100000; rates.KVES = res.data["exchange_rates"].VEF_USD / 100000000; } catch (e) { - l(e); + l.error(e); } } |
