Log stuff (I may be being attacked)
This commit is contained in:
parent
abe844a8ce
commit
173b877dbf
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue