diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-04-17 21:54:08 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-04-17 21:54:08 -0500 |
commit | fda25494564015e0fdaa7742746ca0fbb7185f80 (patch) | |
tree | 3b47924980dc8f411e9141a142b299f1f93018b1 | |
parent | 1285e8418921441f8644a847b869854725b837db (diff) |
Modify logger to provide url that was requested.
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); } |