Log stuff (I may be being attacked)

This commit is contained in:
Thomas FORGIONE 2015-07-02 14:30:31 +02:00
parent abe844a8ce
commit 173b877dbf
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json()); app.use(bodyParser.json());
app.use(function(req, res, next) { app.use(function(req, res, next) {
// Log connection
console.log('[REQ] ' + new Date() + ' ' + req.connection.remoteAddress + ' : ' + req.url);
res.locals.title = "3DUI"; res.locals.title = "3DUI";
res.locals.urls = urls; res.locals.urls = urls;
res.locals.session = req.session; res.locals.session = req.session;