aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 21:54:08 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 21:54:08 -0500
commitfda25494564015e0fdaa7742746ca0fbb7185f80 (patch)
tree3b47924980dc8f411e9141a142b299f1f93018b1
parent1285e8418921441f8644a847b869854725b837db (diff)
Modify logger to provide url that was requested.
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index c0f595e..07d9a16 100644
--- a/index.js
+++ b/index.js
@@ -5,7 +5,7 @@ const members = require('./Members.js');
const app = express();
const logger = (req, res, next) => {
- console.log('Hello');
+ console.log(`${req.protocol}://${req.get('host')}${req.originalUrl}`);
next();
}