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