Give a try

This commit is contained in:
Thomas FORGIONE 2015-07-03 15:00:36 +02:00
parent e1d5402222
commit 59aa1c7339
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Log.ready = function(msg) {
}
Log.request = function(req, res) {
console.log(req.headers['x-forwarded-for'], process.env.OPENSHIFT_NODEJS_IP);
if (req.headers['x-forwarded-for'] != process.env.OPENSHIFT_NODEJS_IP || isDev) {
log(
'[REQ] ' + new Date() + ' ' +