aboutsummaryrefslogtreecommitdiffstats
path: root/stripe.js
diff options
context:
space:
mode:
Diffstat (limited to 'stripe.js')
-rw-r--r--stripe.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/stripe.js b/stripe.js
index ba1f68f7..090def4b 100644
--- a/stripe.js
+++ b/stripe.js
@@ -1,4 +1,5 @@
const config = require("./config");
+const l = console.log;
module.exports = (auth, app, db, emit) => {
app.post("/buy", auth, async (req, res) => {
@@ -33,7 +34,7 @@ module.exports = (auth, app, db, emit) => {
res.send(`Bought ${amount}`);
} catch (e) {
- console.log(e);
+ l(e);
res.status(500).send(e);
}
});