This commit is contained in:
Thomas FORGIONE 2015-07-03 13:44:21 +02:00
parent c44c13e34a
commit fd3f11d4cc
1 changed files with 8 additions and 6 deletions

View File

@ -30,12 +30,14 @@ Log.ready = function(msg) {
} }
Log.request = function(req, res) { Log.request = function(req, res) {
log( if (req.connection.remoteAddress !== process.env.OPENSHIFT_NODEJS_IP) {
'[REQ] ' + new Date() + ' ' + log(
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) + '[REQ] ' + new Date() + ' ' +
' : ' + req.url, (req.headers['x-forwarded-for'] || req.connection.remoteAddress) +
Colors.CYAN ' : ' + req.url,
); Colors.CYAN
);
}
} }
Log.socket = {}; Log.socket = {};