Corrected (a little bit) sponza, add load.js to generate load in db
This commit is contained in:
@@ -29,12 +29,13 @@ Log.ready = function(msg) {
|
||||
log('[RDY] ' + new Date() + ' ' + msg, Colors.GREEN);
|
||||
};
|
||||
|
||||
Log.request = function(req, res) {
|
||||
Log.request = function(req, res, time) {
|
||||
if (req.headers['x-forwarded-for'] !== undefined || isDev) {
|
||||
log(
|
||||
'[REQ] ' + new Date() + ' ' +
|
||||
(req.headers['x-forwarded-for'] || req.connection.remoteAddress) +
|
||||
' : ' + req.url,
|
||||
(time !== undefined ? (' in ' + (" " + time).slice(-6) + ' ms') : '') +
|
||||
' : ' + req.url ,
|
||||
Colors.CYAN
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user