This commit is contained in:
parent
c44c13e34a
commit
fd3f11d4cc
|
@ -30,12 +30,14 @@ Log.ready = function(msg) {
|
|||
}
|
||||
|
||||
Log.request = function(req, res) {
|
||||
if (req.connection.remoteAddress !== process.env.OPENSHIFT_NODEJS_IP) {
|
||||
log(
|
||||
'[REQ] ' + new Date() + ' ' +
|
||||
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) +
|
||||
' : ' + req.url,
|
||||
Colors.CYAN
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Log.socket = {};
|
||||
|
|
Loading…
Reference in New Issue