aboutsummaryrefslogtreecommitdiffstats
path: root/stripe.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-03-05 13:51:13 -0800
committerAdam Soltys <[email protected]>2020-03-05 13:51:13 -0800
commit5cb36445b47b7b2c888d802088726b6bec88651a (patch)
tree3f3921189646d7fb6d9d6a4dabe68781aa472574 /stripe.js
parentaf5e3116eb8bec64f40ebde74d1ec8c47ef971a2 (diff)
downloadcoinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.tar.gz
coinos-server-5cb36445b47b7b2c888d802088726b6bec88651a.zip
pino logger
Diffstat (limited to 'stripe.js')
-rw-r--r--stripe.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/stripe.js b/stripe.js
index c22b4419..459435c2 100644
--- a/stripe.js
+++ b/stripe.js
@@ -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);
}
});