From db5c8ce83806fc90ebff83f6981533df927f5079 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 18 Aug 2024 01:34:15 -0600 Subject: [PATCH] Add logs --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 6696f90..c8da7b9 100644 --- a/index.js +++ b/index.js @@ -36,6 +36,12 @@ const client = new Discord.Client({ app.use(express.json()); +app.use((req, res, next) => { + // Log all requests with IP address + console.log(`${colors.cyan("[EXPRESS]")} ${req.ip} ${req.method} ${req.url}`); + next(); +}); + // Vars var handledTransactions = [];