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 /stripe.js | |
| parent | af5e3116eb8bec64f40ebde74d1ec8c47ef971a2 (diff) | |
| download | coinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.tar.gz coinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.zip | |
pino logger
Diffstat (limited to 'stripe.js')
| -rw-r--r-- | stripe.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ const config = require("./config"); -const l = console.log; +const l = require("pino")(); module.exports = (auth, app, db, emit) => { app.post("/buy", auth, async (req, res) => { @@ -35,7 +35,7 @@ module.exports = (auth, app, db, emit) => { res.send(`Bought ${amount}`); } catch (e) { - l(e); + l.error(e); res.status(500).send(e); } }); |
