mod if nolog

This commit is contained in:
muddydixon 2011-10-25 14:28:46 +09:00
parent c7d3ac4fe1
commit b5bc9c8322

View File

@ -46,7 +46,7 @@ function getLogger(logger4js, options) {
if (req._logging) return next();
// nologs
if(nolog.test(req.url)) return next();
if(nolog && nolog.test(req.url)) return next();
if (thislogger.isLevelEnabled(level)) {