Give it a try
This commit is contained in:
parent
cbbe9e6597
commit
e1d5402222
|
@ -30,7 +30,7 @@ Log.ready = function(msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.request = function(req, res) {
|
Log.request = function(req, res) {
|
||||||
if (req.headers['x-forwarded-for'] !== process.env.OPENSHIFT_NODEJS_IP || isDev) {
|
if (req.headers['x-forwarded-for'] != process.env.OPENSHIFT_NODEJS_IP || isDev) {
|
||||||
log(
|
log(
|
||||||
'[REQ] ' + new Date() + ' ' +
|
'[REQ] ' + new Date() + ' ' +
|
||||||
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) +
|
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) +
|
||||||
|
|
Loading…
Reference in New Issue